1.1 --- a/micropython/inspect.py Fri Jun 28 21:17:02 2013 +0200
1.2 +++ b/micropython/inspect.py Sat Jun 29 01:28:12 2013 +0200
1.3 @@ -115,7 +115,6 @@
1.4
1.5 # Import machinery links.
1.6
1.7 - self.optimisations = self.importer.optimisations
1.8 self.builtins = self.importer.modules.get("__builtins__")
1.9 self.loaded = False
1.10 self.completed = False
1.11 @@ -316,13 +315,12 @@
1.12 names.
1.13 """
1.14
1.15 - if self.should_optimise_unused_objects():
1.16 - self.vacuum_object(self)
1.17 + self.vacuum_object(self)
1.18
1.19 - all_objects = list(self.all_objects)
1.20 + all_objects = list(self.all_objects)
1.21
1.22 - for obj in all_objects:
1.23 - self.vacuum_object(obj)
1.24 + for obj in all_objects:
1.25 + self.vacuum_object(obj)
1.26
1.27 def vacuum_object(self, obj, delete_all=0):
1.28
1.29 @@ -399,11 +397,6 @@
1.30 if any_scope or not (self.namespaces and isinstance(self.namespaces[-1], Function)):
1.31 self.all_objects.add(obj)
1.32
1.33 - # Optimisation tests.
1.34 -
1.35 - def should_optimise_unused_objects(self):
1.36 - return "unused_objects" in self.optimisations
1.37 -
1.38 # Namespace methods.
1.39
1.40 def in_class(self, namespaces=None):