forked from VimPlug/jedi
Remove some dead code
This commit is contained in:
@@ -80,6 +80,9 @@ class FunctionMixin(object):
|
|||||||
return LambdaName(self)
|
return LambdaName(self)
|
||||||
return ValueName(self, self.tree_node.name)
|
return ValueName(self, self.tree_node.name)
|
||||||
|
|
||||||
|
def is_function(self):
|
||||||
|
return True
|
||||||
|
|
||||||
def py__name__(self):
|
def py__name__(self):
|
||||||
return self.name.string_name
|
return self.name.string_name
|
||||||
|
|
||||||
|
|||||||
@@ -195,14 +195,6 @@ class _BaseTreeInstance(AbstractInstanceValue):
|
|||||||
# Propably from the metaclass.
|
# Propably from the metaclass.
|
||||||
yield f
|
yield f
|
||||||
|
|
||||||
def _get_annotation_init_functions(self):
|
|
||||||
filter = next(self.class_value.get_filters())
|
|
||||||
for init_name in filter.get('__init__'):
|
|
||||||
for init in init_name.infer():
|
|
||||||
if init.is_function():
|
|
||||||
for signature in init.get_signatures():
|
|
||||||
yield signature.value
|
|
||||||
|
|
||||||
@inference_state_method_cache()
|
@inference_state_method_cache()
|
||||||
def create_instance_context(self, class_context, node):
|
def create_instance_context(self, class_context, node):
|
||||||
new = node
|
new = node
|
||||||
|
|||||||
@@ -145,12 +145,6 @@ class ClassMixin(object):
|
|||||||
def py__name__(self):
|
def py__name__(self):
|
||||||
return self.name.string_name
|
return self.name.string_name
|
||||||
|
|
||||||
def get_param_names(self):
|
|
||||||
for value_ in self.py__getattribute__(u'__init__'):
|
|
||||||
if value_.is_function():
|
|
||||||
return list(value_.get_param_names())[1:]
|
|
||||||
return []
|
|
||||||
|
|
||||||
@inference_state_method_generator_cache()
|
@inference_state_method_generator_cache()
|
||||||
def py__mro__(self):
|
def py__mro__(self):
|
||||||
mro = [self]
|
mro = [self]
|
||||||
|
|||||||
Reference in New Issue
Block a user