From 53bb68fb14f7961a556b7eef7b686ec476ba4eb2 Mon Sep 17 00:00:00 2001 From: hai007 Date: Wed, 2 Jun 2021 11:16:28 -0700 Subject: [PATCH] Internal change PiperOrigin-RevId: 377101972 --- cpp/platform/config/BUILD | 35 ----------------------------------- cpp/platform/config/config.h | 36 ------------------------------------ cpp/platform/config/string.h | 26 -------------------------- 3 files changed, 97 deletions(-) delete mode 100644 cpp/platform/config/BUILD delete mode 100644 cpp/platform/config/config.h delete mode 100644 cpp/platform/config/string.h diff --git a/cpp/platform/config/BUILD b/cpp/platform/config/BUILD deleted file mode 100644 index 3f287f36..00000000 --- a/cpp/platform/config/BUILD +++ /dev/null @@ -1,35 +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. - -cc_library( - name = "config", - hdrs = [ - "config.h", - ], - visibility = [ - "//visibility:private", - ], -) - -cc_library( - name = "string", - hdrs = [ - "string.h", - ], - visibility = [ - ], - deps = [ - ":config", - ], -) diff --git a/cpp/platform/config/config.h b/cpp/platform/config/config.h deleted file mode 100644 index 80b3780d..00000000 --- a/cpp/platform/config/config.h +++ /dev/null @@ -1,36 +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 PLATFORM_CONFIG_CONFIG_H_ -#define PLATFORM_CONFIG_CONFIG_H_ - -// Clients can modify this file to customize the Nearby C++ codebase as per -// their particular constraints and environments. - -// Note: Every entry in this file should conform to the following format, to -// give precedence to command-line options (-D) that set these symbols: -// -// #ifndef XXX -// #define XXX 0/1 -// #endif - -#ifndef NEARBY_USE_STD_STRING -#define NEARBY_USE_STD_STRING 0 -#endif - -#ifndef NEARBY_USE_RTTI -#define NEARBY_USE_RTTI 1 -#endif - -#endif // PLATFORM_CONFIG_CONFIG_H_ diff --git a/cpp/platform/config/string.h b/cpp/platform/config/string.h deleted file mode 100644 index ad0282f7..00000000 --- a/cpp/platform/config/string.h +++ /dev/null @@ -1,26 +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 PLATFORM_CONFIG_STRING_H_ -#define PLATFORM_CONFIG_STRING_H_ - -#include - -#include "platform/config/config.h" - -#if NEARBY_USE_STD_STRING -using std::string; -#endif - -#endif // PLATFORM_CONFIG_STRING_H_