Skip to content

Commit d53c7aa

Browse files
sbenzaquencopybara-github
authored andcommitted
Remove unused internal function from the public section of Map.
PiperOrigin-RevId: 805973468
1 parent b7d3c2d commit d53c7aa

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/google/protobuf/map.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1421,7 +1421,7 @@ class Map : private internal::KeyMapBase<internal::KeyForBase<Key>> {
14211421

14221422
void swap(Map& other) {
14231423
if (arena() == other.arena()) {
1424-
InternalSwap(&other);
1424+
this->InternalSwap(&other);
14251425
} else {
14261426
size_t other_size = other.size();
14271427
Node* other_copy = this->CloneFromOther(other);
@@ -1433,10 +1433,6 @@ class Map : private internal::KeyMapBase<internal::KeyForBase<Key>> {
14331433
}
14341434
}
14351435

1436-
void InternalSwap(Map* other) {
1437-
internal::UntypedMapBase::InternalSwap(other);
1438-
}
1439-
14401436
hasher hash_function() const { return {}; }
14411437

14421438
size_t SpaceUsedExcludingSelfLong() const {

0 commit comments

Comments
 (0)