From 0c39dddc4faa90d95416775851fe92ca62d430fa Mon Sep 17 00:00:00 2001 From: Protobuf Team Bot Date: Tue, 6 Dec 2022 16:30:40 -0800 Subject: [PATCH] Remove some #if 0'd code that wasn't meant to be checked in. PiperOrigin-RevId: 493444006 --- .../compiler/cpp/parse_function_generator.cc | 40 ------------------- 1 file changed, 40 deletions(-) diff --git a/src/google/protobuf/compiler/cpp/parse_function_generator.cc b/src/google/protobuf/compiler/cpp/parse_function_generator.cc index a057570858..e4f8edf4ab 100644 --- a/src/google/protobuf/compiler/cpp/parse_function_generator.cc +++ b/src/google/protobuf/compiler/cpp/parse_function_generator.cc @@ -1413,46 +1413,6 @@ void ParseFunctionGenerator::GenerateFieldSwitch( format("} // switch\n"); } -#if 0 -void PopulateFastFieldEntry(const Descriptor* descriptor, - const TailCallTableInfo::FieldEntryInfo& entry, - const Options& options, - TailCallTableInfo::FastFieldInfo& info) { - ..... - if (name == "V8S1") { - info.func_name = absl::StrCat( - "::_pbi::TcParser::SingularVarintNoZag1()"); - } else if (name == "V32S1") { - info.func_name = absl::StrCat( - "::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(", // - ClassName(descriptor), // - ", ", // - FieldMemberName(field, /*split=*/false), // - "), ", // - HasHasbit(field) ? entry.hasbit_idx : 63, // - ">()"); - } else if (name == "V64S1") { - info.func_name = absl::StrCat( - "::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(", // - ClassName(descriptor), // - ", ", // - FieldMemberName(field, /*split=*/false), // - "), ", // - HasHasbit(field) ? entry.hasbit_idx : 63, // - ">()"); - } else { - info.func_name = absl::StrCat("::_pbi::TcParser::Fast", name); - } - info.aux_idx = aux_idx; -} -#endif - } // namespace cpp } // namespace compiler } // namespace protobuf