1.1 --- a/generator.py Sun Feb 12 01:22:58 2017 +0100
1.2 +++ b/generator.py Sun Feb 12 23:24:42 2017 +0100
1.3 @@ -272,26 +272,8 @@
1.4 function_instance_attrs["__fn__"] = path
1.5 function_instance_attrs["__args__"] = encode_size("pmin", path)
1.6
1.7 - # Produce two structures where a method is involved.
1.8 -
1.9 - parent, name = path.rsplit(".", 1)
1.10 - parent_ref = self.importer.get_object(parent)
1.11 - parent_kind = parent_ref and parent_ref.get_kind()
1.12 -
1.13 - # Populate and write each structure.
1.14 -
1.15 - if parent_kind == "<class>":
1.16 -
1.17 - # A method.
1.18 -
1.19 - structure = self.populate_function(path, function_instance_attrs)
1.20 - self.write_structure(f_decls, f_defs, path, table_name, structure)
1.21 -
1.22 - else:
1.23 - # A normal function.
1.24 -
1.25 - structure = self.populate_function(path, function_instance_attrs)
1.26 - self.write_structure(f_decls, f_defs, path, table_name, structure)
1.27 + structure = self.populate_function(path, function_instance_attrs)
1.28 + self.write_structure(f_decls, f_defs, path, table_name, structure)
1.29
1.30 # Functions with defaults need to declare instance structures.
1.31