Skip to content

Commit d96d253

Browse files
committed
remove unused code
1 parent 95e6ebf commit d96d253

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

google/cloud/storage/client_options.cc

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,6 @@ absl::optional<std::string> GetEmulator() {
5050
return GetEnv("CLOUD_STORAGE_TESTBENCH_ENDPOINT");
5151
}
5252

53-
StatusOr<std::shared_ptr<oauth2::Credentials>> StorageDefaultCredentials(
54-
Options const& options) {
55-
auto emulator = GetEmulator();
56-
if (emulator.has_value()) {
57-
return StatusOr<std::shared_ptr<oauth2::Credentials>>(
58-
oauth2::CreateAnonymousCredentials());
59-
}
60-
return oauth2::GoogleDefaultCredentials(options);
61-
}
62-
6353
std::size_t DefaultConnectionPoolSize() {
6454
std::size_t nthreads = std::thread::hardware_concurrency();
6555
if (nthreads == 0) {

google/cloud/storage/client_options_test.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
#include "google/cloud/internal/rest_options.h"
2222
#include "google/cloud/internal/rest_response.h"
2323
#include "google/cloud/opentelemetry_options.h"
24-
#include "google/cloud/options.h"
2524
#include "google/cloud/testing_util/scoped_environment.h"
2625
#include "google/cloud/testing_util/setenv.h"
2726
#include "google/cloud/testing_util/status_matchers.h"

0 commit comments

Comments
 (0)