Get rid of Function's get_magic_function_X, they are not used anymore.

This commit is contained in:
Dave Halter
2015-01-08 14:17:33 +01:00
parent 47fc3cbdfe
commit bd304d33c7
2 changed files with 5 additions and 13 deletions

View File

@@ -249,14 +249,12 @@ class Script(object):
completions = []
debug.dbg('possible completion scopes: %s', scopes)
for s in scopes:
if s.isinstance(er.Function):
names = s.get_magic_function_names()
else:
names = []
for names_dict in s.names_dicts(search_global=False):
names += chain.from_iterable(names_dict.values())
names = filter_definition_names(names, self._parser.user_stmt())
for c in names:
completions.append((c, s))
return completions

View File

@@ -575,12 +575,6 @@ class Function(use_metaclass(CachedMetaClass, Wrapper)):
for names_dict in compiled.magic_function_class.names_dicts(False):
yield names_dict
def get_magic_function_names(self):
return compiled.magic_function_class.get_defined_names()
def get_magic_function_scope(self):
return compiled.magic_function_class
@Python3Method
def py__call__(self, evaluator, params):
if self.base.is_generator():