Skip to content

Commit

Permalink
[java] Removing unused variable
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
diemol committed May 27, 2022
1 parent e64f200 commit 7a21d25
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import com.google.common.annotations.VisibleForTesting;
import com.google.common.collect.ImmutableSet;

import org.openqa.selenium.AcceptedW3CCapabilityKeys;
import org.openqa.selenium.Beta;
import org.openqa.selenium.Capabilities;
import org.openqa.selenium.Credentials;
Expand Down Expand Up @@ -56,7 +55,6 @@
import java.util.Set;
import java.util.TreeMap;
import java.util.function.Function;
import java.util.function.Predicate;
import java.util.function.Supplier;
import java.util.logging.Logger;
import java.util.stream.Collectors;
Expand Down Expand Up @@ -95,7 +93,6 @@
public class RemoteWebDriverBuilder {

private static final Logger LOG = Logger.getLogger(RemoteWebDriverBuilder.class.getName());
private static final Predicate<String> ACCEPTED_W3C_PATTERNS = new AcceptedW3CCapabilityKeys();
private static final Set<String> ILLEGAL_METADATA_KEYS = ImmutableSet.of(
"alwaysMatch",
"capabilities",
Expand Down Expand Up @@ -399,7 +396,7 @@ private WebDriver getRemoteDriver() {
.andThen(new ErrorFilter())
.andThen(new DumpHttpExchangeFilter()));

Either<SessionNotCreatedException, ProtocolHandshake.Result> result = null;
Either<SessionNotCreatedException, ProtocolHandshake.Result> result;
try {
result = new ProtocolHandshake().createSession(handler, getPayload());
} catch (IOException e) {
Expand Down

0 comments on commit 7a21d25

Please sign in to comment.