From c9fbf6b6901dfc628646907a6d4360c23149af30 Mon Sep 17 00:00:00 2001 From: Francis Tsui Date: Mon, 23 Dec 2024 15:27:41 -0800 Subject: [PATCH] internal changes PiperOrigin-RevId: 709164576 --- connections/implementation/BUILD | 13 ------------ connections/implementation/message_lite.h | 20 ------------------- connections/implementation/offline_frames.cc | 2 -- internal/crypto/ed25519_unittest.cc | 1 - sharing/analytics/analytics_recorder.cc | 1 - .../nearby_share_certificate_manager_impl.cc | 1 - sharing/nearby_sharing_service_impl_test.cc | 1 - 7 files changed, 39 deletions(-) delete mode 100644 connections/implementation/message_lite.h diff --git a/connections/implementation/BUILD b/connections/implementation/BUILD index e985af1a..32b0323f 100644 --- a/connections/implementation/BUILD +++ b/connections/implementation/BUILD @@ -157,19 +157,6 @@ cc_library( ], ) -cc_library( - name = "message_lite", - hdrs = [ - "message_lite.h", - ], - visibility = [ - "//connections:__subpackages__", - ], - deps = [ - "@com_google_protobuf//:protobuf_lite", - ], -) - cc_library( name = "internal_test", testonly = True, diff --git a/connections/implementation/message_lite.h b/connections/implementation/message_lite.h deleted file mode 100644 index 39635702..00000000 --- a/connections/implementation/message_lite.h +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef CORE_INTERNAL_MESSAGE_LITE_H_ -#define CORE_INTERNAL_MESSAGE_LITE_H_ - -#include "google/protobuf/message_lite.h" // IWYU pragma: export - -#endif // CORE_INTERNAL_MESSAGE_LITE_H_ diff --git a/connections/implementation/offline_frames.cc b/connections/implementation/offline_frames.cc index 8fa972ba..680bae51 100644 --- a/connections/implementation/offline_frames.cc +++ b/connections/implementation/offline_frames.cc @@ -15,7 +15,6 @@ #include "connections/implementation/offline_frames.h" #include -#include #include #include #include @@ -36,7 +35,6 @@ namespace { using ExceptionOrOfflineFrame = ExceptionOr<::location::nearby::connections::OfflineFrame>; -using MessageLite = ::google::protobuf::MessageLite; using ::location::nearby::connections::BandwidthUpgradeNegotiationFrame; using ::location::nearby::connections::ConnectionRequestFrame; using ::location::nearby::connections::ConnectionResponseFrame; diff --git a/internal/crypto/ed25519_unittest.cc b/internal/crypto/ed25519_unittest.cc index 97be492d..8092c316 100644 --- a/internal/crypto/ed25519_unittest.cc +++ b/internal/crypto/ed25519_unittest.cc @@ -17,7 +17,6 @@ #include #include "gmock/gmock.h" -#include "protobuf-matchers/protocol-buffer-matchers.h" #include "gtest/gtest.h" #include "absl/strings/escaping.h" diff --git a/sharing/analytics/analytics_recorder.cc b/sharing/analytics/analytics_recorder.cc index c689354a..a7ce3469 100644 --- a/sharing/analytics/analytics_recorder.cc +++ b/sharing/analytics/analytics_recorder.cc @@ -34,7 +34,6 @@ #include "sharing/proto/enums.pb.h" #include "sharing/share_target.h" #include "sharing/wifi_credentials_attachment.h" -#include "google/protobuf/repeated_ptr_field.h" namespace nearby { namespace sharing { diff --git a/sharing/certificates/nearby_share_certificate_manager_impl.cc b/sharing/certificates/nearby_share_certificate_manager_impl.cc index a7b9ccde..df7dedae 100644 --- a/sharing/certificates/nearby_share_certificate_manager_impl.cc +++ b/sharing/certificates/nearby_share_certificate_manager_impl.cc @@ -69,7 +69,6 @@ #include "sharing/proto/rpc_resources.pb.h" #include "sharing/scheduling/nearby_share_scheduler.h" #include "sharing/scheduling/nearby_share_scheduler_factory.h" -#include "google/protobuf/repeated_ptr_field.h" namespace nearby { namespace sharing { diff --git a/sharing/nearby_sharing_service_impl_test.cc b/sharing/nearby_sharing_service_impl_test.cc index 56527ec4..78b13acd 100644 --- a/sharing/nearby_sharing_service_impl_test.cc +++ b/sharing/nearby_sharing_service_impl_test.cc @@ -95,7 +95,6 @@ #include "sharing/transfer_metadata_matchers.h" #include "sharing/transfer_update_callback.h" #include "sharing/wifi_credentials_attachment.h" -#include "google/protobuf/repeated_ptr_field.h" namespace nearby::sharing { namespace {