Skip to content

Commit 6efbc12

Browse files
ClaytonKnittelcopybara-github
authored andcommitted
Remove unused EncodePlacementArenaOffsets function.
PiperOrigin-RevId: 877976526
1 parent 127b34f commit 6efbc12

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

src/google/protobuf/generated_message_util.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -390,19 +390,6 @@ inline void AddToRepeatedPtrField(InternalVisibility visibility,
390390
dest.InternalAddWithArena(visibility, arena, std::move(value));
391391
}
392392

393-
constexpr absl::optional<uintptr_t> EncodePlacementArenaOffsets(
394-
std::initializer_list<size_t> offsets) {
395-
uintptr_t arena_bits = 0;
396-
for (size_t offset : offsets) {
397-
offset /= sizeof(Arena*);
398-
if (offset >= sizeof(arena_bits) * 8) {
399-
return absl::nullopt;
400-
}
401-
arena_bits |= uintptr_t{1} << offset;
402-
}
403-
return arena_bits;
404-
}
405-
406393
// The struct PrivateAccess is used to provide access to private members of
407394
// message classes without making them public. This is useful for highly
408395
// optimized code paths that need to access internals.

0 commit comments

Comments
 (0)