Skip to content

Commit

Permalink
Remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
Storyyeller committed Jul 27, 2015
1 parent 8e159db commit 3724c05
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions Krakatau/ssa/graph.py
Expand Up @@ -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

Expand Down Expand Up @@ -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():
Expand Down

0 comments on commit 3724c05

Please sign in to comment.