diff --git a/src/google/protobuf/compiler/allowlists/BUILD.bazel b/src/google/protobuf/compiler/allowlists/BUILD.bazel index e6671c05c1..e5ca2c8e27 100644 --- a/src/google/protobuf/compiler/allowlists/BUILD.bazel +++ b/src/google/protobuf/compiler/allowlists/BUILD.bazel @@ -24,7 +24,6 @@ cc_library( "editions.cc", "empty_package.cc", "open_enum.cc", - "unused_imports.cc", ], hdrs = ["allowlists.h"], copts = COPTS, diff --git a/src/google/protobuf/compiler/allowlists/unused_imports.cc b/src/google/protobuf/compiler/allowlists/unused_imports.cc deleted file mode 100644 index d9d4b6f70d..0000000000 --- a/src/google/protobuf/compiler/allowlists/unused_imports.cc +++ /dev/null @@ -1,28 +0,0 @@ -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file or at -// https://developers.google.com/open-source/licenses/bsd - -#include "absl/strings/string_view.h" -#include "google/protobuf/compiler/allowlists/allowlist.h" -#include "google/protobuf/compiler/allowlists/allowlists.h" - -namespace google { -namespace protobuf { -namespace compiler { - -// NOTE: Allowlists in this file are not accepting new entries unless otherwise -// specified. -// TODO: Remove when empty. -static constexpr auto kUnusedImports = internal::MakeAllowlist({ -// Intentionally left blank. -}); - -bool IsUnusedImportFile(absl::string_view file) { - return kUnusedImports.Allows(file); -} -} // namespace compiler -} // namespace protobuf -} // namespace google