Index: pkg/kernel/lib/binary/ast_to_binary.dart |
diff --git a/pkg/kernel/lib/binary/ast_to_binary.dart b/pkg/kernel/lib/binary/ast_to_binary.dart |
index cef4a846697c761d08e09a67d69346ebe9fcd194..2c87df570979b7c95ebca030b559d3357531f6bd 100644 |
--- a/pkg/kernel/lib/binary/ast_to_binary.dart |
+++ b/pkg/kernel/lib/binary/ast_to_binary.dart |
@@ -122,17 +122,6 @@ class BinaryPrinter extends Visitor { |
} |
} |
- void writeOptionalInferredValue(InferredValue node) { |
- if (node == null) { |
- writeByte(Tag.Nothing); |
- } else { |
- writeByte(Tag.Something); |
- writeClassReference(node.baseClass, allowNull: true); |
- writeByte(node.baseClassKind.index); |
- writeByte(node.valueBits); |
- } |
- } |
- |
void writeLinkTable(Program program) { |
List<CanonicalName> list = <CanonicalName>[]; |
void visitCanonicalName(CanonicalName node) { |
@@ -376,7 +365,6 @@ class BinaryPrinter extends Visitor { |
writeUriReference(node.fileUri ?? ''); |
writeAnnotationList(node.annotations); |
writeNode(node.type); |
- writeOptionalInferredValue(node.inferredValue); |
writeOptionalNode(node.initializer); |
_variableIndexer = null; |
} |
@@ -426,7 +414,6 @@ class BinaryPrinter extends Visitor { |
writeVariableDeclarationList(node.positionalParameters); |
writeVariableDeclarationList(node.namedParameters); |
writeNode(node.returnType); |
- writeOptionalInferredValue(node.inferredReturnValue); |
writeOptionalNode(node.body); |
_labelIndexer = oldLabels; |
_switchCaseIndexer = oldCases; |
@@ -917,7 +904,6 @@ class BinaryPrinter extends Visitor { |
writeByte(node.flags); |
writeStringReference(node.name ?? ''); |
writeNode(node.type); |
- writeOptionalInferredValue(node.inferredValue); |
writeOptionalNode(node.initializer); |
// Declare the variable after its initializer. It is not in scope in its |
// own initializer. |