diff --git a/jedi/parser_utils.py b/jedi/parser_utils.py index 3fc3019d..f1443d8b 100644 --- a/jedi/parser_utils.py +++ b/jedi/parser_utils.py @@ -172,18 +172,6 @@ def get_call_signature(funcdef, width=72, call_string=None, return '\n'.join(textwrap.wrap(code, width)) -def get_call_signature_for_any(any_node): - call_signature = None - if any_node.type == 'classdef': - for funcdef in any_node.iter_funcdefs(): - if funcdef.name.value == '__init__': - call_signature = \ - get_call_signature(funcdef, call_string=any_node.name.value) - elif any_node.type in ('funcdef', 'lambdef'): - call_signature = get_call_signature(any_node) - return call_signature - - def move(node, line_offset): """ Move the `Node` start_pos. diff --git a/test/test_parso_integration/test_parser_utils.py b/test/test_parso_integration/test_parser_utils.py index 2a9a7049..c085710c 100644 --- a/test/test_parso_integration/test_parser_utils.py +++ b/test/test_parso_integration/test_parser_utils.py @@ -84,5 +84,3 @@ def test_get_call_signature(code, call_signature): if node.type == 'simple_stmt': node = node.children[0] assert parser_utils.get_call_signature(node) == call_signature - - assert parser_utils.get_call_signature_for_any(node) == call_signature