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