Skip to content

Commit 7a21d25

Browse files
committed
[java] Removing unused variable
[skip ci]
1 parent e64f200 commit 7a21d25

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

java/src/org/openqa/selenium/remote/RemoteWebDriverBuilder.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import com.google.common.annotations.VisibleForTesting;
2121
import com.google.common.collect.ImmutableSet;
2222

23-
import org.openqa.selenium.AcceptedW3CCapabilityKeys;
2423
import org.openqa.selenium.Beta;
2524
import org.openqa.selenium.Capabilities;
2625
import org.openqa.selenium.Credentials;
@@ -56,7 +55,6 @@
5655
import java.util.Set;
5756
import java.util.TreeMap;
5857
import java.util.function.Function;
59-
import java.util.function.Predicate;
6058
import java.util.function.Supplier;
6159
import java.util.logging.Logger;
6260
import java.util.stream.Collectors;
@@ -95,7 +93,6 @@
9593
public class RemoteWebDriverBuilder {
9694

9795
private static final Logger LOG = Logger.getLogger(RemoteWebDriverBuilder.class.getName());
98-
private static final Predicate<String> ACCEPTED_W3C_PATTERNS = new AcceptedW3CCapabilityKeys();
9996
private static final Set<String> ILLEGAL_METADATA_KEYS = ImmutableSet.of(
10097
"alwaysMatch",
10198
"capabilities",
@@ -399,7 +396,7 @@ private WebDriver getRemoteDriver() {
399396
.andThen(new ErrorFilter())
400397
.andThen(new DumpHttpExchangeFilter()));
401398

402-
Either<SessionNotCreatedException, ProtocolHandshake.Result> result = null;
399+
Either<SessionNotCreatedException, ProtocolHandshake.Result> result;
403400
try {
404401
result = new ProtocolHandshake().createSession(handler, getPayload());
405402
} catch (IOException e) {

0 commit comments

Comments
 (0)