| Index: pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart
|
| diff --git a/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart b/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart
|
| index 267abcc3500c241b54e184352b1d0828047acf49..44152148716a7d7f89dcd38c424dd8cabb29c78e 100644
|
| --- a/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart
|
| +++ b/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart
|
| @@ -76,42 +76,6 @@ abstract class InteriorNode extends Node {
|
| /// [LetMutable].
|
| abstract class InteriorExpression extends Expression implements InteriorNode {
|
| Expression get next => body;
|
| -
|
| - /// Removes this expression from its current position in the IR.
|
| - ///
|
| - /// The node can be re-inserted elsewhere or remain orphaned.
|
| - ///
|
| - /// If orphaned, the caller is responsible for unlinking all references in
|
| - /// the orphaned node. Use [Reference.unlink] or [Primitive.destroy] for this.
|
| - void remove() {
|
| - assert(parent != null);
|
| - assert(parent.body == this);
|
| - assert(body.parent == this);
|
| - parent.body = body;
|
| - body.parent = parent;
|
| - parent = null;
|
| - body = null;
|
| - }
|
| -
|
| - /// Inserts this above [node].
|
| - ///
|
| - /// This node must be orphaned first.
|
| - void insertAbove(InteriorExpression node) {
|
| - insertBelow(node.parent);
|
| - }
|
| -
|
| - /// Inserts this below [node].
|
| - ///
|
| - /// This node must be orphaned first.
|
| - void insertBelow(InteriorNode newParent) {
|
| - assert(parent == null);
|
| - assert(body == null);
|
| - Expression child = newParent.body;
|
| - newParent.body = this;
|
| - this.body = child;
|
| - child.parent = this;
|
| - this.parent = newParent;
|
| - }
|
| }
|
|
|
| /// An expression that passes a continuation to a call.
|
| @@ -253,12 +217,6 @@ abstract class Primitive extends Variable<Primitive> {
|
| bool get hasNoEffectiveUses {
|
| return effectiveUses.isEmpty;
|
| }
|
| -
|
| - /// Unlinks all references contained in this node.
|
| - void destroy() {
|
| - assert(hasNoUses);
|
| - RemovalVisitor.remove(this);
|
| - }
|
| }
|
|
|
| /// Operands to invocations and primitives are always variables. They point to
|
|
|