Cleanup and prep for 0.3.5 release
readme cleanup
created changelog
remove unused members
R=sra@google.com
Review URL: https://chromiumcodereview.appspot.com//886643002
diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 0000000..210028d
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,8 @@
+## 0.3.5
+
+ * Allow constants as field initial values as well as creation thunks to reduce
+ generated code size.
+
+ * Improve the performance of reading a protobuf buffer.
+
+ * Fixed truncation error in least significant bits with large Int64 constants.
\ No newline at end of file
diff --git a/README.md b/README.md
index 6e8935b..fec77e6 100644
--- a/README.md
+++ b/README.md
@@ -1,32 +1,14 @@
-Protobuf runtime support library
-================================
+Provides runtime support for a Dart implementation of protobufs.
[![Build Status](https://drone.io/github.com/dart-lang/dart-protobuf/status.png)](https://drone.io/github.com/dart-lang/dart-protobuf/latest)
-This library provides runtime support library for Dart implementation
-of protobufs.
+Typically one do not need to import this library–only libraries
+generated by the protoc plugin import this library directly.
-Typically one do not need to import this library---only libraries
-generated by protoc plugin import this library directly.
+If your library or application uses generated protobuf libraries, add this
+library as a dependency.
-However, if your library or application uses generated protobuf libraries,
-please, add this library as a dependency.
+### References
-Hacking
--------
-
-So far to hack on the library the main thing you should be aware of is how
-to run unittests. The easiest way would be to use DartEditor and run
-`all_tests.dart` file which is the whole suite.
-
-If you'd like to run test from command line, please, do not pass proper
-package root.
-
-Useful references
------------------
-
-* [Main Dart site](http://www.dartlang.org)
-* [Main protobuf site](https://code.google.com/p/protobuf)
+* [protobuf site](https://code.google.com/p/protobuf)
* [Protoc plugin project](https://github.com/dart-lang/dart-protoc-plugin)
-* [DartEditor download](http://www.dartlang.org)
-* [Pub documentation](http://pub.dartlang.org/doc)
diff --git a/lib/src/protobuf/coded_buffer_reader.dart b/lib/src/protobuf/coded_buffer_reader.dart
index 20fbbab..fa0b99f 100644
--- a/lib/src/protobuf/coded_buffer_reader.dart
+++ b/lib/src/protobuf/coded_buffer_reader.dart
@@ -61,8 +61,6 @@
}
}
- bool _canRead(int increment) => _bufferPos + increment <= _currentLimit;
-
void readGroup(int fieldNumber, GeneratedMessage message,
ExtensionRegistry extensionRegistry) {
if (_recursionDepth >= _recursionLimit) {
diff --git a/lib/src/protobuf/generated_message.dart b/lib/src/protobuf/generated_message.dart
index 62d1a7c..7686603 100644
--- a/lib/src/protobuf/generated_message.dart
+++ b/lib/src/protobuf/generated_message.dart
@@ -1028,19 +1028,6 @@
return type;
}
- /**
- * Returns the type associated with a given tag number, either from the
- * [BuilderInfo] associated with this [GeneratedMessage],
- * or from a known extension. If the type is unknown, [null] is returned.
- */
- int _getBaseFieldType(int tagNumber) {
- int type = info_.fieldType(tagNumber);
- if (type == null && _extensions.containsKey(tagNumber)) {
- type = _extensions[tagNumber].type;
- }
- return type;
- }
-
/*
* Returns the base field type without any of the required, repeated
* and packed bits.