We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7f641d commit d62c3f6Copy full SHA for d62c3f6
google-cloud-storage/src/main/java/com/google/cloud/storage/RequestBody.java
@@ -44,13 +44,6 @@ public static RequestBody of(ByteBuffer... buffers) {
44
return new RequestBody(RewindableContent.of(buffers));
45
}
46
47
- public static RequestBody fromByteBuffer(ByteBuffer buffer) {
48
- ByteBuffer duplicate = buffer.duplicate();
49
- byte[] arr = new byte[duplicate.remaining()];
50
- duplicate.get(arr);
51
- return new RequestBody(RewindableContent.of(buffer));
52
- }
53
-
54
public static RequestBody of(ByteBuffer[] srcs, int srcsOffset, int srcsLength) {
55
return new RequestBody(RewindableContent.of(srcs, srcsOffset, srcsLength));
56
0 commit comments