Skip to content

Commit aa83381

Browse files
committed
update more code and deps
1 parent 8bf8fc3 commit aa83381

12 files changed

Lines changed: 6 additions & 20 deletions

examples/api_key.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#include "absl/strings/str_split.h"
3434
#include <chrono>
3535
#include <iostream>
36+
#include <optional>
3637
#include <string>
3738
#include <thread>
3839
#include <vector>
@@ -147,7 +148,7 @@ void AutoRun(std::vector<std::string> const& argv) {
147148
// When we authenticate with an API key, we do not have (or need)
148149
// credentials. Using a quota project requires credentials, so disable it.
149150
google::cloud::testing_util::ScopedEnvironment overlay(
150-
"GOOGLE_CLOUD_CPP_USER_PROJECT", absl::nullopt);
151+
"GOOGLE_CLOUD_CPP_USER_PROJECT", std::nullopt);
151152

152153
try {
153154
AuthenticateWithApiKey({project_id, key.key_string()});

google/cloud/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ cc_library(
7878
"@abseil-cpp//absl/strings:str_format",
7979
"@abseil-cpp//absl/time",
8080
"@abseil-cpp//absl/types:span",
81-
"@abseil-cpp//absl/types:variant",
8281
"@opentelemetry-cpp//api",
8382
] + select({
8483
"@platforms//os:windows": [],

google/cloud/google_cloud_cpp_common.cmake

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,9 @@ target_link_libraries(
184184
google_cloud_cpp_common
185185
PUBLIC absl::base
186186
absl::memory
187-
absl::optional
188187
absl::span
189188
absl::str_format
190189
absl::time
191-
absl::variant
192190
Threads::Threads)
193191
if (WIN32)
194192
target_compile_definitions(google_cloud_cpp_common
@@ -255,12 +253,10 @@ google_cloud_cpp_add_pkgconfig(
255253
"common"
256254
"Google Cloud C++ Client Library Common Components"
257255
"Common Components used by the Google Cloud C++ Client Libraries."
258-
"absl_optional"
259256
"absl_span"
260257
"absl_strings"
261258
"absl_time"
262259
"absl_time_zone"
263-
"absl_variant"
264260
"${GOOGLE_CLOUD_CPP_OPENTELEMETRY_API}"
265261
NON_WIN32_REQUIRES
266262
openssl
@@ -428,7 +424,6 @@ if (BUILD_TESTING)
428424
PRIVATE google_cloud_cpp_testing
429425
google-cloud-cpp::common
430426
google-cloud-cpp::mocks
431-
absl::variant
432427
GTest::gmock_main
433428
GTest::gmock
434429
GTest::gtest)

google/cloud/google_cloud_cpp_grpc_utils.cmake

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ target_link_libraries(
112112
PUBLIC absl::function_ref
113113
absl::memory
114114
absl::time
115-
absl::variant
116115
google-cloud-cpp::iam_credentials_v1_iamcredentials_protos
117116
google-cloud-cpp::iam_v1_policy_protos
118117
google-cloud-cpp::longrunning_operations_protos
@@ -183,7 +182,6 @@ google_cloud_cpp_add_pkgconfig(
183182
"absl_strings"
184183
"absl_time"
185184
"absl_time_zone"
186-
"absl_variant"
187185
"openssl")
188186
# Create and install the CMake configuration files.
189187
configure_file("config-grpc-utils.cmake.in"
@@ -208,7 +206,6 @@ function (google_cloud_cpp_grpc_utils_add_test fname labels)
208206
google_cloud_cpp_testing_grpc
209207
google_cloud_cpp_testing
210208
google-cloud-cpp::common
211-
absl::variant
212209
GTest::gmock_main
213210
GTest::gmock
214211
GTest::gtest
@@ -308,7 +305,6 @@ if (BUILD_TESTING)
308305
google_cloud_cpp_testing
309306
google-cloud-cpp::common
310307
google-cloud-cpp::iam_credentials_v1_iamcredentials_protos
311-
absl::variant
312308
GTest::gmock_main
313309
GTest::gmock
314310
GTest::gtest

google/cloud/google_cloud_cpp_rest_protobuf_internal.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ function (google_cloud_cpp_rest_protobuf_internal_add_test fname labels)
106106
google_cloud_cpp_testing_grpc
107107
google_cloud_cpp_testing
108108
google-cloud-cpp::common
109-
absl::variant
110109
GTest::gmock_main
111110
GTest::gmock
112111
GTest::gtest)

google/cloud/google_cloud_cpp_universe_domain.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function (google_cloud_cpp_universe_domain_add_test fname labels)
8585
target_link_libraries(
8686
${target}
8787
PRIVATE google-cloud-cpp::universe_domain google_cloud_cpp_testing
88-
absl::variant GTest::gmock_main GTest::gmock GTest::gtest)
88+
GTest::gmock_main GTest::gmock GTest::gtest)
8989
google_cloud_cpp_add_common_options(${target})
9090
add_test(NAME ${target} COMMAND ${target})
9191
set_tests_properties(${target} PROPERTIES LABELS "${labels}")

google/cloud/storage/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ cc_library(
145145
"@abseil-cpp//absl/strings:str_format",
146146
"@abseil-cpp//absl/time",
147147
"@abseil-cpp//absl/types:span",
148-
"@abseil-cpp//absl/types:variant",
149148
"@curl",
150149
"@nlohmann_json//:json",
151150
] + select({

google/cloud/storage/google_cloud_cpp_storage.cmake

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,6 @@ target_link_libraries(
246246
absl::memory
247247
absl::strings
248248
absl::time
249-
absl::variant
250249
google-cloud-cpp::common
251250
google-cloud-cpp::rest_internal
252251
nlohmann_json::nlohmann_json
@@ -320,7 +319,6 @@ google_cloud_cpp_add_pkgconfig(
320319
"absl_strings"
321320
"absl_str_format"
322321
"absl_time"
323-
"absl_variant"
324322
NON_WIN32_REQUIRES
325323
openssl
326324
WIN32_LIBS

google/cloud/storage/google_cloud_cpp_storage_grpc.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,6 @@ google_cloud_cpp_add_pkgconfig(
282282
"google_cloud_cpp_grpc_utils"
283283
"google_cloud_cpp_common"
284284
"grpc++"
285-
"absl_optional"
286285
"absl_strings"
287286
"absl_time"
288287
${EXTRA_MODULES})

google/cloud/testing_util/scoped_environment.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class ScopedEnvironment {
3535
public:
3636
/**
3737
* Set the @p variable environment variable to @p value. If @value is
38-
* an unset `absl::optional` then the variable is unset. The previous value
38+
* an unset `std::optional` then the variable is unset. The previous value
3939
* of the variable will be restored upon destruction.
4040
*/
4141
ScopedEnvironment(std::string variable,

0 commit comments

Comments
 (0)