Skip to content

Commit

Permalink
cleanup: use common's PaginationRange (googleapis/google-cloud-cpp-sp…
Browse files Browse the repository at this point in the history
…anner#1278)

Deletes our own internal/range_from_pagination.h
Fixes: googleapis/google-cloud-cpp-spanner#1256
  • Loading branch information
devjgm authored Feb 21, 2020
1 parent 562b1af commit 0f8ef35
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 201 deletions.
1 change: 0 additions & 1 deletion google/cloud/spanner/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ add_library(
internal/partial_result_set_source.cc
internal/partial_result_set_source.h
internal/polling_loop.h
internal/range_from_pagination.h
internal/retry_loop.cc
internal/retry_loop.h
internal/session.cc
Expand Down
4 changes: 2 additions & 2 deletions google/cloud/spanner/database_admin_connection.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
#include "google/cloud/spanner/database.h"
#include "google/cloud/spanner/instance.h"
#include "google/cloud/spanner/internal/database_admin_stub.h"
#include "google/cloud/spanner/internal/range_from_pagination.h"
#include "google/cloud/spanner/polling_policy.h"
#include "google/cloud/spanner/retry_policy.h"
#include "google/cloud/internal/pagination_range.h"
#include <google/spanner/admin/database/v1/spanner_database_admin.grpc.pb.h>
#include <string>
#include <vector>
Expand All @@ -40,7 +40,7 @@ inline namespace SPANNER_CLIENT_NS {
*
* [cppref-input-range]: https://en.cppreference.com/w/cpp/ranges/input_range
*/
using ListDatabaseRange = internal::PaginationRange<
using ListDatabaseRange = google::cloud::internal::PaginationRange<
google::spanner::admin::database::v1::Database,
google::spanner::admin::database::v1::ListDatabasesRequest,
google::spanner::admin::database::v1::ListDatabasesResponse>;
Expand Down
6 changes: 3 additions & 3 deletions google/cloud/spanner/instance_admin_connection.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@

#include "google/cloud/spanner/backoff_policy.h"
#include "google/cloud/spanner/internal/instance_admin_stub.h"
#include "google/cloud/spanner/internal/range_from_pagination.h"
#include "google/cloud/spanner/polling_policy.h"
#include "google/cloud/spanner/retry_policy.h"
#include "google/cloud/internal/pagination_range.h"
#include <google/spanner/admin/instance/v1/spanner_instance_admin.grpc.pb.h>
#include <map>

Expand All @@ -37,7 +37,7 @@ inline namespace SPANNER_CLIENT_NS {
*
* [cppref-input-range]: https://en.cppreference.com/w/cpp/ranges/input_range
*/
using ListInstancesRange = internal::PaginationRange<
using ListInstancesRange = google::cloud::internal::PaginationRange<
google::spanner::admin::instance::v1::Instance,
google::spanner::admin::instance::v1::ListInstancesRequest,
google::spanner::admin::instance::v1::ListInstancesResponse>;
Expand All @@ -51,7 +51,7 @@ using ListInstancesRange = internal::PaginationRange<
*
* [cppref-input-range]: https://en.cppreference.com/w/cpp/ranges/input_range
*/
using ListInstanceConfigsRange = internal::PaginationRange<
using ListInstanceConfigsRange = google::cloud::internal::PaginationRange<
google::spanner::admin::instance::v1::InstanceConfig,
google::spanner::admin::instance::v1::ListInstanceConfigsRequest,
google::spanner::admin::instance::v1::ListInstanceConfigsResponse>;
Expand Down
194 changes: 0 additions & 194 deletions google/cloud/spanner/internal/range_from_pagination.h

This file was deleted.

1 change: 0 additions & 1 deletion google/cloud/spanner/spanner_client.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ spanner_client_hdrs = [
"internal/partial_result_set_resume.h",
"internal/partial_result_set_source.h",
"internal/polling_loop.h",
"internal/range_from_pagination.h",
"internal/retry_loop.h",
"internal/session.h",
"internal/session_pool.h",
Expand Down

0 comments on commit 0f8ef35

Please sign in to comment.