Skip to content

Commit

Permalink
Remove unused PbMap optional argument
Browse files Browse the repository at this point in the history
  • Loading branch information
osa1 committed Jul 11, 2022
1 parent d610d12 commit d94d3f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions protobuf/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
([#624], [#626])
* `GeneratedMessage.getField` now initializes map fields. This behavior is
consistent with `getField` called on repeated fields. ([#373], [#707])
* Unused and optional `PbMap` constructor argument (`BuilderInfo? info`)
removed.

[#183]: https://github.com/google/protobuf.dart/issues/183
[#644]: https://github.com/google/protobuf.dart/pull/644
Expand Down
3 changes: 1 addition & 2 deletions protobuf/lib/src/protobuf/pb_map.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ class PbMap<K, V> extends MapBase<K, V> {

bool _isReadonly = false;

// The provided [info] will be ignored.
PbMap(this.keyFieldType, this.valueFieldType, [BuilderInfo? info])
PbMap(this.keyFieldType, this.valueFieldType)
: _wrappedMap = <K, V>{};

PbMap.unmodifiable(PbMap other)
Expand Down

0 comments on commit d94d3f0

Please sign in to comment.