Skip to content

Commit

Permalink
Remove some no-op calls to deprecated functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
jleyba committed May 6, 2014
1 parent 1bd26af commit 31de201
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,8 @@
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.client.methods.HttpUriRequest;
import org.apache.http.client.params.HttpClientParams;
import org.apache.http.entity.ByteArrayEntity;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.params.BasicHttpParams;
import org.apache.http.params.CoreConnectionPNames;
import org.apache.http.params.HttpParams;
import org.apache.http.protocol.BasicHttpContext;
import org.apache.http.protocol.HttpContext;
import org.apache.http.util.EntityUtils;
Expand Down Expand Up @@ -98,11 +94,6 @@ public HttpCommandExecutor(Map<String, CommandInfo> additionalCommands, URL addr
commandCodec = new JsonHttpCommandCodec();
responseCodec = new JsonHttpResponseCodec();

HttpParams params = new BasicHttpParams();
// Use the JRE default for the socket linger timeout.
params.setParameter(CoreConnectionPNames.SO_LINGER, -1);
HttpClientParams.setRedirecting(params, false);

synchronized (HttpCommandExecutor.class) {
if (httpClientFactory == null) {
httpClientFactory = new HttpClientFactory();
Expand Down

0 comments on commit 31de201

Please sign in to comment.