From 9185479ca1ce2f3f227d4a11f17717409aefb2f4 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sat, 18 Nov 2017 21:38:03 -0800 Subject: [PATCH] scons: Get rid of SourceFile's done function. 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 Maintainer: Andreas Sandberg Reviewed-by: Nikos Nikoleris Reviewed-by: Andreas Sandberg Reviewed-by: Jason Lowe-Power --- src/SConscript | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/SConscript b/src/SConscript index da8476d6c..f9560afbc 100755 --- a/src/SConscript +++ b/src/SConscript @@ -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() -- 2.30.2