diff --git a/php/ext/google/protobuf/php-upb.c b/php/ext/google/protobuf/php-upb.c index 696d667d1c..a420e46485 100644 --- a/php/ext/google/protobuf/php-upb.c +++ b/php/ext/google/protobuf/php-upb.c @@ -330,10 +330,6 @@ void __asan_unpoison_memory_region(void const volatile *addr, size_t size); #define UPB_DEPRECATED #endif -// begin:google_only -// #define UPB_IS_GOOGLE3 -// end:google_only - #if defined(UPB_IS_GOOGLE3) && \ (!defined(UPB_BOOTSTRAP_STAGE) || UPB_BOOTSTRAP_STAGE != 0) #define UPB_DESC(sym) proto2_##sym @@ -346,6 +342,7 @@ void __asan_unpoison_memory_region(void const volatile *addr, size_t size); #define UPB_DESC_MINITABLE(sym) &google__protobuf__##sym##_msg_init #endif +#undef UPB_IS_GOOGLE3 // Linker arrays combine elements from multiple translation units into a single // array that can be iterated over at runtime. @@ -14350,20 +14347,6 @@ static bool _upb_FieldDef_InferLegacyFeatures( ret = true; } -// begin:google_only -// #if UPB_BOOTSTRAP_STAGE != 0 -// if (syntax == kUpb_Syntax_Proto3 && -// UPB_DESC(FieldOptions_has_enforce_utf8)(options) && -// !UPB_DESC(FieldOptions_enforce_utf8)(options)) { -// int val = UPB_DESC(FeatureSet_UNVERIFIED); -// UPB_DESC(FeatureSet_set_utf8_validation(features, val)); -// ret = true; -// } -// #endif -// // clang-format off -// end:google_only - // clang-format on - return ret; } diff --git a/php/ext/google/protobuf/php-upb.h b/php/ext/google/protobuf/php-upb.h index a01cdc60bb..18d5730a34 100644 --- a/php/ext/google/protobuf/php-upb.h +++ b/php/ext/google/protobuf/php-upb.h @@ -329,10 +329,6 @@ void __asan_unpoison_memory_region(void const volatile *addr, size_t size); #define UPB_DEPRECATED #endif -// begin:google_only -// #define UPB_IS_GOOGLE3 -// end:google_only - #if defined(UPB_IS_GOOGLE3) && \ (!defined(UPB_BOOTSTRAP_STAGE) || UPB_BOOTSTRAP_STAGE != 0) #define UPB_DESC(sym) proto2_##sym @@ -345,6 +341,7 @@ void __asan_unpoison_memory_region(void const volatile *addr, size_t size); #define UPB_DESC_MINITABLE(sym) &google__protobuf__##sym##_msg_init #endif +#undef UPB_IS_GOOGLE3 // Linker arrays combine elements from multiple translation units into a single // array that can be iterated over at runtime. diff --git a/ruby/ext/google/protobuf_c/ruby-upb.c b/ruby/ext/google/protobuf_c/ruby-upb.c index 6bed3ed473..d7f6b3fafe 100644 --- a/ruby/ext/google/protobuf_c/ruby-upb.c +++ b/ruby/ext/google/protobuf_c/ruby-upb.c @@ -330,10 +330,6 @@ void __asan_unpoison_memory_region(void const volatile *addr, size_t size); #define UPB_DEPRECATED #endif -// begin:google_only -// #define UPB_IS_GOOGLE3 -// end:google_only - #if defined(UPB_IS_GOOGLE3) && \ (!defined(UPB_BOOTSTRAP_STAGE) || UPB_BOOTSTRAP_STAGE != 0) #define UPB_DESC(sym) proto2_##sym @@ -346,6 +342,7 @@ void __asan_unpoison_memory_region(void const volatile *addr, size_t size); #define UPB_DESC_MINITABLE(sym) &google__protobuf__##sym##_msg_init #endif +#undef UPB_IS_GOOGLE3 // Linker arrays combine elements from multiple translation units into a single // array that can be iterated over at runtime. @@ -13838,20 +13835,6 @@ static bool _upb_FieldDef_InferLegacyFeatures( ret = true; } -// begin:google_only -// #if UPB_BOOTSTRAP_STAGE != 0 -// if (syntax == kUpb_Syntax_Proto3 && -// UPB_DESC(FieldOptions_has_enforce_utf8)(options) && -// !UPB_DESC(FieldOptions_enforce_utf8)(options)) { -// int val = UPB_DESC(FeatureSet_UNVERIFIED); -// UPB_DESC(FeatureSet_set_utf8_validation(features, val)); -// ret = true; -// } -// #endif -// // clang-format off -// end:google_only - // clang-format on - return ret; } diff --git a/ruby/ext/google/protobuf_c/ruby-upb.h b/ruby/ext/google/protobuf_c/ruby-upb.h index 014e092676..2cd05c1be6 100755 --- a/ruby/ext/google/protobuf_c/ruby-upb.h +++ b/ruby/ext/google/protobuf_c/ruby-upb.h @@ -331,10 +331,6 @@ void __asan_unpoison_memory_region(void const volatile *addr, size_t size); #define UPB_DEPRECATED #endif -// begin:google_only -// #define UPB_IS_GOOGLE3 -// end:google_only - #if defined(UPB_IS_GOOGLE3) && \ (!defined(UPB_BOOTSTRAP_STAGE) || UPB_BOOTSTRAP_STAGE != 0) #define UPB_DESC(sym) proto2_##sym @@ -347,6 +343,7 @@ void __asan_unpoison_memory_region(void const volatile *addr, size_t size); #define UPB_DESC_MINITABLE(sym) &google__protobuf__##sym##_msg_init #endif +#undef UPB_IS_GOOGLE3 // Linker arrays combine elements from multiple translation units into a single // array that can be iterated over at runtime.