Skip to content

Commit

Permalink
Deleting deprecated code
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed May 9, 2018
1 parent f7eeab8 commit 5a8a2c1
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,6 @@ public interface HttpClient {
*/
HttpResponse execute(HttpRequest request) throws IOException;

/**
* Closes the connections associated with this client.
*
* @throws IOException if an I/O error occurs.
* @deprecated This responsibility moved to Factory
*/
@Deprecated
void close() throws IOException;

interface Factory {

static Factory createDefault() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,4 @@ private static synchronized HttpClientFactory getDefaultHttpClientFactory() {
return defaultClientFactory;
}
}

@Deprecated
@Override
public void close() throws IOException {
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,6 @@ public HttpResponse execute(HttpRequest request) throws IOException {
return toReturn;
}

@Override
public void close() {
// No-op
}

public static class Factory implements HttpClient.Factory {

private final ConnectionPool pool = new ConnectionPool();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -384,11 +384,6 @@ public HttpResponse execute(HttpRequest request) {
return response;
}

@Override
public void close() {
// Does nothing
}

String getRequestPayload() {
return payload;
}
Expand Down

0 comments on commit 5a8a2c1

Please sign in to comment.