Index: lib/generated_message.dart |
diff --git a/lib/generated_message.dart b/lib/generated_message.dart |
index 538fdfd9df540ae2e09eb329d81173f645ad19a5..cf28f3014c5f2ba119c775cd711d1c67dbcdf029 100644 |
--- a/lib/generated_message.dart |
+++ b/lib/generated_message.dart |
@@ -874,18 +874,6 @@ abstract class GeneratedMessage { |
void clearField(int tagNumber) { |
_fieldValues.remove(tagNumber); |
- // Restore the default value for the field. |
- // For repeated fields, the default is an empty list. |
- // For required/optional fields, the BuilderInfo contains the initializer. |
- int fieldType = _getFieldType(tagNumber); |
- if ((fieldType & _REPEATED_BIT) != 0) { |
- _fieldValues[tagNumber] = new PbList(); |
- } else { |
- var defaultValue = info_.defaultValue(tagNumber); |
- if (defaultValue != null) { |
- _fieldValues[tagNumber] = defaultValue; |
- } |
- } |
} |
bool extensionsAreInitialized() { |