Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ailrst committed Jan 25, 2024
1 parent 22ff6ee commit 58d84d1
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/main/scala/ir/Program.scala
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,6 @@ class Block private (
val statements: IntrusiveList[Statement],
private var _jump: Jump,
private val _incomingJumps: mutable.HashSet[GoTo],
// private val _incomingFallthrough: mutable.HashSet[Call],
) extends HasParent[Procedure] {
_jump.setParent(this)
statements.foreach(_.setParent(this))
Expand Down Expand Up @@ -345,10 +344,6 @@ class Block private (
def addIncomingJump(g: GoTo) = _incomingJumps.add(g)
def removeIncomingJump(g: GoTo) = _incomingJumps.remove(g)

// def incomingFallthroughs: immutable.Set[Call] = _incomingFallthrough.toSet
// def addIncomingFallthrough(g: Call) = _incomingFallthrough.add(g)
// def removeIncomingFallthrough(g: Call) = _incomingFallthrough.remove(g)

def calls: Set[Procedure] = _jump.calls

def modifies: Set[Global] = statements.flatMap(_.modifies).toSet
Expand Down

0 comments on commit 58d84d1

Please sign in to comment.