Skip to content

Commit d94d3f0

Browse files
committed
Remove unused PbMap optional argument
1 parent d610d12 commit d94d3f0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

protobuf/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
([#624], [#626])
88
* `GeneratedMessage.getField` now initializes map fields. This behavior is
99
consistent with `getField` called on repeated fields. ([#373], [#707])
10+
* Unused and optional `PbMap` constructor argument (`BuilderInfo? info`)
11+
removed.
1012

1113
[#183]: https://github.com/google/protobuf.dart/issues/183
1214
[#644]: https://github.com/google/protobuf.dart/pull/644

protobuf/lib/src/protobuf/pb_map.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ class PbMap<K, V> extends MapBase<K, V> {
2424

2525
bool _isReadonly = false;
2626

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

3130
PbMap.unmodifiable(PbMap other)

0 commit comments

Comments
 (0)