Skip to content

Commit 214b8f1

Browse files
committed
remove unnecessary changes
1 parent 57d5c6e commit 214b8f1

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

google/cloud/storage/async/object_descriptor.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,10 @@ std::pair<AsyncReader, AsyncToken> ObjectDescriptor::Read(std::int64_t offset,
2929
std::int64_t limit) {
3030
auto max_range =
3131
impl_->options().get<storage_experimental::MaximumRangeSizeOption>();
32-
std::unique_ptr<storage_experimental::AsyncReaderConnection> reader;
3332
if (limit > max_range) {
3433
impl_->MakeSubsequentStream();
3534
}
36-
reader = impl_->Read({offset, limit});
35+
auto reader = impl_->Read({offset, limit});
3736
auto token = storage_internal::MakeAsyncToken(reader.get());
3837
return {AsyncReader(std::move(reader)), std::move(token)};
3938
}

google/cloud/storage/async/object_descriptor_connection.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_STORAGE_ASYNC_OBJECT_DESCRIPTOR_CONNECTION_H
1616
#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_STORAGE_ASYNC_OBJECT_DESCRIPTOR_CONNECTION_H
1717

18-
#include "google/cloud/storage/async/reader.h"
1918
#include "google/cloud/storage/async/reader_connection.h"
2019
#include "google/cloud/options.h"
2120
#include "google/cloud/version.h"

google/cloud/storage/internal/async/object_descriptor_connection_tracing.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
// limitations under the License.
1414

1515
#include "google/cloud/storage/internal/async/object_descriptor_connection_tracing.h"
16-
#include "google/cloud/storage/async/object_descriptor.h"
17-
#include "google/cloud/storage/async/reader.h"
1816
#include "google/cloud/storage/async/reader_connection.h"
1917
#include "google/cloud/internal/opentelemetry.h"
2018
#include "google/cloud/version.h"

0 commit comments

Comments
 (0)