Remove unused Offset function (#10120)

This fails to build with -Werror.
This commit is contained in:
Marc Plano-Lesay 2022-06-10 09:59:07 +10:00 committed by GitHub
parent af699898d2
commit 85225b83c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -340,11 +340,6 @@ const char* TcParser::MiniParse(PROTOBUF_TC_PARAM_DECL) {
namespace {
// Offset returns the address `offset` bytes after `base`.
inline void* Offset(void* base, uint32_t offset) {
return static_cast<uint8_t*>(base) + offset;
}
// InvertPacked changes tag bits from the given wire type to length
// delimited. This is the difference expected between packed and non-packed
// repeated fields.