Skip to content

Commit 873b8ff

Browse files
author
Frank Natividad
committed
Removing unused class imports and variables
1 parent b21740b commit 873b8ff

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

google-cloud-examples/src/main/java/com/google/cloud/examples/storage/snippets/BucketIamSnippets.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@
2020
import com.google.cloud.Policy;
2121
import com.google.cloud.Role;
2222
import com.google.cloud.storage.Storage;
23-
import com.google.cloud.storage.StorageException;
2423
import com.google.cloud.storage.StorageOptions;
25-
import com.google.cloud.storage.StorageRoles;
2624

2725
import java.util.Map;
2826
import java.util.Set;
@@ -32,10 +30,7 @@
3230
*/
3331
public class BucketIamSnippets {
3432

35-
private final Storage storage;
36-
37-
public BucketIamSnippets(Storage storage) {
38-
this.storage = storage;
33+
public BucketIamSnippets() {
3934
}
4035

4136
/**

google-cloud-examples/src/test/java/com/google/cloud/examples/storage/snippets/ITBucketSnippets.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public static void beforeClass() {
7373
RemoteStorageHelper helper = RemoteStorageHelper.create();
7474
storage = helper.getOptions().getService();
7575
bucketSnippets = new BucketSnippets(storage.create(BucketInfo.of(BUCKET)));
76-
bucketIamSnippets = new BucketIamSnippets(storage);
76+
bucketIamSnippets = new BucketIamSnippets();
7777
}
7878

7979
@AfterClass

0 commit comments

Comments
 (0)