Index: pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart |
diff --git a/pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart b/pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart |
index 0ad583b63fea40de141cac19c182adf719375ce4..155831b43420f501edc578f5d8746e372e781438 100644 |
--- a/pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart |
+++ b/pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart |
@@ -20,10 +20,6 @@ import 'cps_ir_nodes.dart' as ir; |
import 'cps_ir_builder_task.dart' show DartCapturedVariables, |
GlobalProgramInformation; |
-import '../common.dart' as types show TypeMask; |
-import '../js/js.dart' as js show Template; |
-import '../native/native.dart' show NativeBehavior; |
- |
/// A mapping from variable elements to their compile-time values. |
/// |
/// Map elements denoted by parameters and local variables to the |
@@ -2415,27 +2411,6 @@ class JsIrBuilder extends IrBuilder { |
return addPrimitive(new ir.CreateInvocationMirror(selector, arguments)); |
} |
- ir.Primitive buildForeignCode(js.Template codeTemplate, |
- List<ir.Primitive> arguments, |
- NativeBehavior behavior, |
- {Element dependency}) { |
- types.TypeMask type = program.getTypeMaskForForeign(behavior); |
- if (codeTemplate.isExpression) { |
- return _continueWithExpression((k) => new ir.ForeignCode( |
- codeTemplate, |
- type, |
- arguments, |
- behavior, |
- continuation: k, |
- dependency: dependency)); |
- } else { |
- assert(isOpen); |
- add(new ir.ForeignCode(codeTemplate, type, arguments, behavior, |
- dependency: dependency)); |
- _current = null; |
- } |
- } |
- |
@override |
ir.Primitive buildTypeOperator(ir.Primitive value, |
DartType type, |