summaryrefslogtreecommitdiffstats
path: root/SCons/Taskmaster
diff options
context:
space:
mode:
authorMats Wichmann <mats@linux.com>2023-05-22 20:03:08 (GMT)
committerMats Wichmann <mats@linux.com>2023-05-22 20:03:08 (GMT)
commita910451a1f5e729e24ede5bfccbab032b6d4a5a6 (patch)
tree90703aa8d183990bca9b9800730ef6e16e7ae379 /SCons/Taskmaster
parentc9eda97784f1b6902e1818ac13f8c572f8d8cbab (diff)
downloadSCons-a910451a1f5e729e24ede5bfccbab032b6d4a5a6.zip
SCons-a910451a1f5e729e24ede5bfccbab032b6d4a5a6.tar.gz
SCons-a910451a1f5e729e24ede5bfccbab032b6d4a5a6.tar.bz2
Drop dead code from unit tests
Remove dead code: some mocked classes in unit tests had methods which have been removed from the Node class they're mocking, there's no need to shadow those any more as there are no callers. The methods are depends_on (base functionality removed in 2005 ) and is_pseudeo_derived (base functionality removed in 2006). Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'SCons/Taskmaster')
-rw-r--r--SCons/Taskmaster/TaskmasterTests.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/SCons/Taskmaster/TaskmasterTests.py b/SCons/Taskmaster/TaskmasterTests.py
index 32959fb..83b7ea9 100644
--- a/SCons/Taskmaster/TaskmasterTests.py
+++ b/SCons/Taskmaster/TaskmasterTests.py
@@ -197,18 +197,9 @@ class Node:
def store_bsig(self) -> None:
pass
- def is_pseudo_derived(self) -> None:
- pass
-
def is_up_to_date(self):
return self._current_val
- def depends_on(self, nodes) -> int:
- for node in nodes:
- if node in self.kids:
- return 1
- return 0
-
def __str__(self) -> str:
return self.name