Skip to content

Commit

Permalink
Remove an unused parameter in the file-local GetOrderedFields function.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 715012819
  • Loading branch information
tonyliaoss authored and copybara-github committed Jan 13, 2025
1 parent 5106654 commit 1355ef2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/google/protobuf/compiler/cpp/parse_function_generator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ using internal::TailCallTableInfo;
using internal::cpp::Utf8CheckMode;

std::vector<const FieldDescriptor*> GetOrderedFields(
const Descriptor* descriptor, const Options& options) {
const Descriptor* descriptor) {
std::vector<const FieldDescriptor*> ordered_fields;
for (auto field : FieldRange(descriptor)) {
ordered_fields.push_back(field);
Expand All @@ -62,7 +62,7 @@ ParseFunctionGenerator::ParseFunctionGenerator(
options_(options),
variables_(vars),
inlined_string_indices_(inlined_string_indices),
ordered_fields_(GetOrderedFields(descriptor_, options_)),
ordered_fields_(GetOrderedFields(descriptor_)),
num_hasbits_(max_has_bit_index),
index_in_file_messages_(index_in_file_messages) {
std::vector<TailCallTableInfo::FieldOptions> fields;
Expand Down

0 comments on commit 1355ef2

Please sign in to comment.