diff --git a/src/google/protobuf/descriptor.cc b/src/google/protobuf/descriptor.cc index 4eeec843a934..eccdec4d7e1f 100644 --- a/src/google/protobuf/descriptor.cc +++ b/src/google/protobuf/descriptor.cc @@ -2869,7 +2869,6 @@ FileDescriptor::FileDescriptor() = default; void FileDescriptor::CopyTo(FileDescriptorProto* proto) const { CopyHeadingTo(proto); - for (int i = 0; i < dependency_count(); i++) { proto->add_dependency(dependency(i)->name()); }