Skip to content

Commit

Permalink
Remove storage todos (replaced with issues: googleapis#288 googleapis…
Browse files Browse the repository at this point in the history
  • Loading branch information
mziccard committed Oct 26, 2015
1 parent 33e932e commit fe98cb4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,6 @@ public StorageObject compose(Iterable<StorageObject> sources, StorageObject targ
Map<Option, ?> targetOptions) throws StorageException {
ComposeRequest request = new ComposeRequest();
if (target.getContentType() == null) {
// todo: remove once this is no longer requirement (b/20681287).
target.setContentType("application/octet-stream");
}
request.setDestination(target);
Expand All @@ -311,7 +310,6 @@ public StorageObject compose(Iterable<StorageObject> sources, StorageObject targ
}
request.setSourceObjects(sourceObjects);
try {
// todo: missing setProjection (b/20659000)
return storage.objects()
.compose(target.getBucket(), target.getName(), request)
.setIfMetagenerationMatch(IF_METAGENERATION_MATCH.getLong(targetOptions))
Expand Down Expand Up @@ -435,7 +433,6 @@ public byte[] read(StorageObject from, Map<Option, ?> options, long position, in
.setIfGenerationMatch(IF_GENERATION_MATCH.getLong(options))
.setIfGenerationNotMatch(IF_GENERATION_NOT_MATCH.getLong(options));
MediaHttpDownloader downloader = req.getMediaHttpDownloader();
// todo: Fix int casting (https://github.com/google/google-api-java-client/issues/937)
downloader.setContentRange(position, (int) position + bytes);
downloader.setDirectDownloadEnabled(true);
ByteArrayOutputStream output = new ByteArrayOutputStream();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ public RetryResult beforeEval(Exception exception) {
StorageImpl(StorageOptions options) {
super(options);
storageRpc = options.storageRpc();
// todo: provide rewrite - https://cloud.google.com/storage/docs/json_api/v1/objects/rewrite
// todo: check if we need to expose https://cloud.google.com/storage/docs/json_api/v1/bucketAccessControls/insert vs using bucket update/patch
}

@Override
Expand Down

0 comments on commit fe98cb4

Please sign in to comment.