From 3724c05ba11ff6913c01ecdfe4fde6a0f246e5db Mon Sep 17 00:00:00 2001 From: Robert Grosse Date: Sun, 26 Jul 2015 23:23:23 -0700 Subject: [PATCH] Remove unused method --- Krakatau/ssa/graph.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/Krakatau/ssa/graph.py b/Krakatau/ssa/graph.py index 59cb0298..9a2f0bbf 100644 --- a/Krakatau/ssa/graph.py +++ b/Krakatau/ssa/graph.py @@ -111,15 +111,6 @@ def filterOps(oldops): block.filterVarConstraints(keepset) self._conscheck() - def _getSources(self): #TODO - remove - sources = collections.defaultdict(set) - for block in self.blocks: - for child in block.getSuccessors(): - sources[child].add(block) - for block in self.blocks: - assert(sources[block] == set(x for x,t in block.predecessors)) - return sources - def mergeSingleSuccessorBlocks(self): assert(not self.procs) # Make sure that all single jsr procs are inlined first @@ -204,10 +195,8 @@ def disconnectConstantVariables(self): def _conscheck(self): '''Sanity check''' - sources = self._getSources() for block in self.blocks: assert(block.jump is not None) - assert(sources[block] == {k for k,t in block.predecessors}) for phi in block.phis: assert(phi.rval is None or phi.rval in block.unaryConstraints) for k,v in phi.dict.items():