Skip to content

Commit 22ad0e3

Browse files
author
oleksiys
committed
[1.9.x] + remove unused method
1 parent cf24765 commit 22ad0e3

File tree

1 file changed

+0
-35
lines changed

1 file changed

+0
-35
lines changed

src/main/java/com/ning/http/client/providers/grizzly/HostnameVerifierListener.java

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -65,41 +65,6 @@ public void onComplete(final Connection connection) {
6565
}
6666
}
6767

68-
static CompletionHandler<Connection> wrapWithHostnameVerifierHandler(
69-
final CompletionHandler<Connection> completionHandler,
70-
final HostnameVerifier verifier, final String host) {
71-
72-
return new CompletionHandler<Connection>() {
73-
74-
public void cancelled() {
75-
if (completionHandler != null) {
76-
completionHandler.cancelled();
77-
}
78-
}
79-
80-
public void failed(final Throwable throwable) {
81-
if (completionHandler != null) {
82-
completionHandler.failed(throwable);
83-
}
84-
}
85-
86-
public void completed(final Connection connection) {
87-
assignHostnameVerifyTask(connection, verifier, host,
88-
completionHandler);
89-
90-
if (completionHandler != null) {
91-
completionHandler.completed(connection);
92-
}
93-
}
94-
95-
public void updated(final Connection connection) {
96-
if (completionHandler != null) {
97-
completionHandler.updated(connection);
98-
}
99-
}
100-
};
101-
}
102-
10368
public static void assignHostnameVerifyTask(final Connection connection,
10469
final HostnameVerifier verifier, final String host,
10570
final CompletionHandler<Connection> delegate) {

0 commit comments

Comments
 (0)