1.1 --- a/modules.py Tue Mar 07 19:21:09 2017 +0100
1.2 +++ b/modules.py Tue Mar 07 22:21:58 2017 +0100
1.3 @@ -67,11 +67,6 @@
1.4 self.function_locals = {}
1.5 self.scope_globals = {}
1.6
1.7 - # Invocation details.
1.8 -
1.9 - self.function_targets = {}
1.10 - self.function_arguments = {}
1.11 -
1.12 # Exception handler details.
1.13
1.14 self.exception_namespaces = set()
1.15 @@ -395,8 +390,6 @@
1.16 self._get_function_defaults(f)
1.17 self._get_function_locals(f)
1.18 self.from_lines(f, self.scope_globals) # "scope globals:"
1.19 - self._get_function_targets(f)
1.20 - self._get_function_arguments(f)
1.21 self._get_attribute_usage(f)
1.22 self._get_attr_accesses(f)
1.23 self._get_const_accesses(f)
1.24 @@ -537,24 +530,6 @@
1.25 self.function_locals[function][name] = decode_reference(value)
1.26 line = f.readline().rstrip()
1.27
1.28 - def _get_function_targets(self, f):
1.29 - f.readline() # "function targets:"
1.30 - line = f.readline().rstrip()
1.31 - while line:
1.32 - function, n = self._get_fields(line)
1.33 - self.importer.function_targets[function] = \
1.34 - self.function_targets[function] = int(n)
1.35 - line = f.readline().rstrip()
1.36 -
1.37 - def _get_function_arguments(self, f):
1.38 - f.readline() # "function arguments:"
1.39 - line = f.readline().rstrip()
1.40 - while line:
1.41 - function, n = self._get_fields(line)
1.42 - self.importer.function_arguments[function] = \
1.43 - self.function_arguments[function] = int(n)
1.44 - line = f.readline().rstrip()
1.45 -
1.46 def _get_attribute_usage(self, f):
1.47 f.readline() # "attribute usage:"
1.48 line = f.readline().rstrip()
1.49 @@ -826,20 +801,6 @@
1.50 self.to_lines(f, "scope globals:", self.scope_globals)
1.51
1.52 print >>f
1.53 - print >>f, "function targets:"
1.54 - functions = self.function_targets.keys()
1.55 - functions.sort()
1.56 - for function in functions:
1.57 - print >>f, function, self.function_targets[function]
1.58 -
1.59 - print >>f
1.60 - print >>f, "function arguments:"
1.61 - functions = self.function_arguments.keys()
1.62 - functions.sort()
1.63 - for function in functions:
1.64 - print >>f, function, self.function_arguments[function]
1.65 -
1.66 - print >>f
1.67 print >>f, "attribute usage:"
1.68 units = self.attr_usage.keys()
1.69 units.sort()