scons: Get rid of SourceFile's done function.
authorGabe Black <gabeblack@google.com>
Sun, 19 Nov 2017 05:38:03 +0000 (21:38 -0800)
committerGabe Black <gabeblack@google.com>
Mon, 27 Nov 2017 22:09:26 +0000 (22:09 +0000)
This function doesn't seem to be used by anything. A similar one off
mechanism exists for SimObjects which is we might also be able to get
rid of.

Change-Id: I65038c3495fa69cf94042dc78f09876d5e9a557f
Reviewed-on: https://gem5-review.googlesource.com/5841
Maintainer: Gabe Black <gabeblack@google.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
src/SConscript

index da8476d6c878e193cf7b920f28890986f68ea68b..f9560afbcf701d9e4337cd5127ddc1d945eaa9fe 100755 (executable)
@@ -152,14 +152,6 @@ class SourceFile(object):
     def __eq__(self, other): return self.filename == other.filename
     def __ne__(self, other): return self.filename != other.filename
 
-    @staticmethod
-    def done():
-        def disabled(cls, name, *ignored):
-            raise RuntimeError("Additional SourceFile '%s'" % name,\
-                  "declared, but targets deps are already fixed.")
-        SourceFile.__init__ = disabled
-
-
 class Source(SourceFile):
     ungrouped_tag = 'No link group'
     source_groups = set()