Skip to content

Commit 1c6fe3b

Browse files
committed
[java] remove deprecated driver service constructors and methods
1 parent dbcad07 commit 1c6fe3b

File tree

4 files changed

+0
-91
lines changed

4 files changed

+0
-91
lines changed

java/src/org/openqa/selenium/chrome/ChromeDriverService.java

-34
Original file line numberDiff line numberDiff line change
@@ -89,26 +89,6 @@ public class ChromeDriverService extends DriverService {
8989
public static final String CHROME_DRIVER_DISABLE_BUILD_CHECK =
9090
"webdriver.chrome.disableBuildCheck";
9191

92-
/**
93-
* @param executable The ChromeDriver executable.
94-
* @param port Which port to start the ChromeDriver on.
95-
* @param args The arguments to the launched server.
96-
* @param environment The environment for the launched server.
97-
* @throws IOException If an I/O error occurs.
98-
* @deprecated use {@link ChromeDriverService#ChromeDriverService(File, int, Duration, List, Map)}
99-
*/
100-
@Deprecated
101-
public ChromeDriverService(
102-
File executable, int port, List<String> args, Map<String, String> environment)
103-
throws IOException {
104-
this(
105-
executable,
106-
port,
107-
DEFAULT_TIMEOUT,
108-
unmodifiableList(new ArrayList<>(args)),
109-
unmodifiableMap(new HashMap<>(environment)));
110-
}
111-
11292
/**
11393
* @param executable The ChromeDriver executable.
11494
* @param port Which port to start the ChromeDriver on.
@@ -249,20 +229,6 @@ public Builder withVerbose(boolean verbose) {
249229
return this;
250230
}
251231

252-
/**
253-
* Configures the comma-separated list of remote IPv4 addresses which are allowed to connect to
254-
* the driver server.
255-
*
256-
* @param allowedListIps Comma-separated list of remote IPv4 addresses.
257-
* @return A self reference.
258-
* @deprecated use {@link #withAllowedListIps(String)}
259-
*/
260-
@Deprecated
261-
public Builder withWhitelistedIps(String allowedListIps) {
262-
this.allowedListIps = allowedListIps;
263-
return this;
264-
}
265-
266232
/**
267233
* Configures the comma-separated list of remote IPv4 addresses which are allowed to connect to
268234
* the driver server.

java/src/org/openqa/selenium/firefox/GeckoDriverService.java

-26
Original file line numberDiff line numberDiff line change
@@ -71,26 +71,6 @@ public class GeckoDriverService extends FirefoxDriverService {
7171
*/
7272
public static final String GECKO_DRIVER_PROFILE_ROOT = "webdriver.firefox.profileRoot";
7373

74-
/**
75-
* @param executable The GeckoDriver executable.
76-
* @param port Which port to start the GeckoDriver on.
77-
* @param args The arguments to the launched server.
78-
* @param environment The environment for the launched server.
79-
* @throws IOException If an I/O error occurs.
80-
* @deprecated use {@link GeckoDriverService#GeckoDriverService(File, int, Duration, List, Map)}
81-
*/
82-
@Deprecated
83-
public GeckoDriverService(
84-
File executable, int port, List<String> args, Map<String, String> environment)
85-
throws IOException {
86-
super(
87-
executable,
88-
port,
89-
DEFAULT_TIMEOUT,
90-
unmodifiableList(new ArrayList<>(args)),
91-
unmodifiableMap(new HashMap<>(environment)));
92-
}
93-
9474
/**
9575
* @param executable The GeckoDriver executable.
9676
* @param port Which port to start the GeckoDriver on.
@@ -262,12 +242,6 @@ protected List<String> createArgs() {
262242
args.add(profileRoot.getAbsolutePath());
263243
}
264244

265-
// deprecated
266-
if (firefoxBinary != null) {
267-
args.add("--binary");
268-
args.add(firefoxBinary.getPath());
269-
}
270-
271245
if (allowHosts != null) {
272246
args.add("--allow-hosts");
273247
args.addAll(Arrays.asList(allowHosts.split(" ")));

java/src/org/openqa/selenium/safari/SafariDriverService.java

-15
Original file line numberDiff line numberDiff line change
@@ -52,21 +52,6 @@ public class SafariDriverService extends DriverService {
5252

5353
private static final File SAFARI_DRIVER_EXECUTABLE = new File("/usr/bin/safaridriver");
5454

55-
/**
56-
* @param executable The SafariDriver executable.
57-
* @param port Which port to start the SafariDriver on.
58-
* @param args The arguments to the launched server.
59-
* @param environment The environment for the launched server.
60-
* @throws IOException If an I/O error occurs.
61-
* @deprecated use {@link SafariDriverService#SafariDriverService(File, int, Duration, List, Map)}
62-
*/
63-
@Deprecated
64-
public SafariDriverService(
65-
File executable, int port, List<String> args, Map<String, String> environment)
66-
throws IOException {
67-
this(executable, port, DEFAULT_TIMEOUT, args, environment);
68-
}
69-
7055
/**
7156
* @param executable The SafariDriver executable.
7257
* @param port Which port to start the SafariDriver on.

java/src/org/openqa/selenium/safari/SafariTechPreviewDriverService.java

-16
Original file line numberDiff line numberDiff line change
@@ -53,22 +53,6 @@ public class SafariTechPreviewDriverService extends DriverService {
5353
private static final File TP_SAFARI_DRIVER_EXECUTABLE =
5454
new File("/Applications/Safari Technology Preview.app/Contents/MacOS/safaridriver");
5555

56-
/**
57-
* @param executable The SafariDriver executable.
58-
* @param port Which port to start the SafariDriver on.
59-
* @param args The arguments to the launched server.
60-
* @param environment The environment for the launched server.
61-
* @throws IOException If an I/O error occurs.
62-
* @deprecated use {@link SafariTechPreviewDriverService#SafariTechPreviewDriverService(File, int,
63-
* Duration, List, Map)}
64-
*/
65-
@Deprecated
66-
public SafariTechPreviewDriverService(
67-
File executable, int port, List<String> args, Map<String, String> environment)
68-
throws IOException {
69-
this(executable, port, DEFAULT_TIMEOUT, args, environment);
70-
}
71-
7256
/**
7357
* @param executable The SafariDriver executable.
7458
* @param port Which port to start the SafariDriver on.

0 commit comments

Comments
 (0)