Skip to content

Commit 31de201

Browse files
committed
Remove some no-op calls to deprecated functions.
1 parent 1bd26af commit 31de201

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

java/client/src/org/openqa/selenium/remote/HttpCommandExecutor.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,8 @@
3838
import org.apache.http.client.methods.HttpGet;
3939
import org.apache.http.client.methods.HttpPost;
4040
import org.apache.http.client.methods.HttpUriRequest;
41-
import org.apache.http.client.params.HttpClientParams;
4241
import org.apache.http.entity.ByteArrayEntity;
4342
import org.apache.http.impl.client.DefaultHttpClient;
44-
import org.apache.http.params.BasicHttpParams;
45-
import org.apache.http.params.CoreConnectionPNames;
46-
import org.apache.http.params.HttpParams;
4743
import org.apache.http.protocol.BasicHttpContext;
4844
import org.apache.http.protocol.HttpContext;
4945
import org.apache.http.util.EntityUtils;
@@ -98,11 +94,6 @@ public HttpCommandExecutor(Map<String, CommandInfo> additionalCommands, URL addr
9894
commandCodec = new JsonHttpCommandCodec();
9995
responseCodec = new JsonHttpResponseCodec();
10096

101-
HttpParams params = new BasicHttpParams();
102-
// Use the JRE default for the socket linger timeout.
103-
params.setParameter(CoreConnectionPNames.SO_LINGER, -1);
104-
HttpClientParams.setRedirecting(params, false);
105-
10697
synchronized (HttpCommandExecutor.class) {
10798
if (httpClientFactory == null) {
10899
httpClientFactory = new HttpClientFactory();

0 commit comments

Comments
 (0)