Skip to content

Commit 8f4fdbf

Browse files
committed
impl(spanner): remove deprecated ClientOptions
1 parent d0db317 commit 8f4fdbf

File tree

8 files changed

+0
-185
lines changed

8 files changed

+0
-185
lines changed

google/cloud/spanner/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ add_library(
9797
bytes.h
9898
client.cc
9999
client.h
100-
client_options.h
101100
commit_options.cc
102101
commit_options.h
103102
commit_result.h
@@ -456,7 +455,6 @@ function (spanner_client_define_tests)
456455
# cmake-format: sort
457456
backup_test.cc
458457
bytes_test.cc
459-
client_options_test.cc
460458
client_test.cc
461459
commit_options_test.cc
462460
connection_options_test.cc

google/cloud/spanner/client.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_CLIENT_H
1717

1818
#include "google/cloud/spanner/batch_dml_result.h"
19-
#include "google/cloud/spanner/client_options.h"
2019
#include "google/cloud/spanner/commit_options.h"
2120
#include "google/cloud/spanner/commit_result.h"
2221
#include "google/cloud/spanner/connection.h"
@@ -717,14 +716,9 @@ class Client {
717716
StatusOr<PartitionedDmlResult> ExecutePartitionedDml(SqlStatement statement,
718717
Options opts = {});
719718

720-
///@{
721-
/// @name Backwards compatibility for ClientOptions.
722-
explicit Client(std::shared_ptr<Connection> conn, ClientOptions const& opts)
723-
: Client(std::move(conn), Options(opts)) {}
724719
explicit Client(std::shared_ptr<Connection> conn,
725720
std::initializer_list<internal::NonConstructible>)
726721
: Client(std::move(conn)) {}
727-
///@}
728722

729723
///@{
730724
/// @name Backwards compatibility for ReadOptions.

google/cloud/spanner/client_options.cc

Whitespace-only changes.

google/cloud/spanner/client_options.h

Lines changed: 0 additions & 82 deletions
This file was deleted.

google/cloud/spanner/client_options_test.cc

Lines changed: 0 additions & 73 deletions
This file was deleted.

google/cloud/spanner/client_test.cc

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1313,26 +1313,6 @@ TEST(ClientTest, UsesConnectionOptions) {
13131313
EXPECT_STATUS_OK(rollback);
13141314
}
13151315

1316-
TEST(ClientTest, UsesClientOptions) {
1317-
auto conn = std::make_shared<MockConnection>();
1318-
auto txn = MakeReadWriteTransaction();
1319-
1320-
EXPECT_CALL(*conn, options).WillOnce([] {
1321-
return Options{}.set<StringOption>("connection");
1322-
});
1323-
EXPECT_CALL(*conn, Rollback)
1324-
.WillOnce([txn](Connection::RollbackParams const& params) {
1325-
auto const& options = internal::CurrentOptions();
1326-
EXPECT_THAT(options.get<StringOption>(), Eq("client"));
1327-
EXPECT_THAT(params.transaction, Eq(txn));
1328-
return Status();
1329-
});
1330-
1331-
Client client(conn, Options{}.set<StringOption>("client"));
1332-
auto rollback = client.Rollback(txn, Options{});
1333-
EXPECT_STATUS_OK(rollback);
1334-
}
1335-
13361316
TEST(ClientTest, UsesOperationOptions) {
13371317
auto conn = std::make_shared<MockConnection>();
13381318
auto txn = MakeReadWriteTransaction();

google/cloud/spanner/google_cloud_cpp_spanner.bzl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ google_cloud_cpp_spanner_hdrs = [
5151
"batch_dml_result.h",
5252
"bytes.h",
5353
"client.h",
54-
"client_options.h",
5554
"commit_options.h",
5655
"commit_result.h",
5756
"connection.h",

google/cloud/spanner/spanner_client_unit_tests.bzl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
spanner_client_unit_tests = [
2020
"backup_test.cc",
2121
"bytes_test.cc",
22-
"client_options_test.cc",
2322
"client_test.cc",
2423
"commit_options_test.cc",
2524
"connection_options_test.cc",

0 commit comments

Comments
 (0)