Skip to content

Commit 1cc86ae

Browse files
author
Stephane Landelle
committed
Remove ListenableFuture.content, close AsyncHttpClient#393
1 parent deb72bd commit 1cc86ae

File tree

3 files changed

+0
-19
lines changed

3 files changed

+0
-19
lines changed

api/src/main/java/org/asynchttpclient/ListenableFuture.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,6 @@ public interface ListenableFuture<V> extends Future<V> {
5454
*/
5555
void abort(Throwable t);
5656

57-
/**
58-
* Set the content that will be returned by this instance
59-
*
60-
* @param v the content that will be returned by this instance
61-
*/
62-
void content(V v);
63-
6457
/**
6558
* Touch the current instance to prevent external service to times out.
6659
*/

providers/grizzly/src/main/java/org/asynchttpclient/providers/grizzly/GrizzlyResponseFuture.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,6 @@ public void abort(Throwable t) {
9292

9393
}
9494

95-
96-
public void content(V v) {
97-
98-
delegate.result(v);
99-
100-
}
101-
102-
10395
public void touch() {
10496

10597
provider.touchConnection(connection, request);

providers/netty/src/main/java/org/asynchttpclient/providers/netty/future/NettyResponseFuture.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -323,10 +323,6 @@ public final void abort(final Throwable t) {
323323
runListeners();
324324
}
325325

326-
public void content(V v) {
327-
content.set(v);
328-
}
329-
330326
public final Request getRequest() {
331327
return request;
332328
}

0 commit comments

Comments
 (0)