Skip to content

Commit a14ed61

Browse files
committed
[java] Removing deprecated methods from CommandLine and DesiredCapabilities
1 parent 97ff43c commit a14ed61

2 files changed

Lines changed: 0 additions & 19 deletions

File tree

java/src/org/openqa/selenium/os/CommandLine.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,6 @@ public CommandLine(String executable, String... args) {
3636
process = new OsProcess(executable, args);
3737
}
3838

39-
/**
40-
* @deprecated Use {@link #CommandLine(String, String...)}
41-
*/
42-
@Deprecated
43-
public CommandLine(String[] cmdarray) {
44-
String executable = cmdarray[0];
45-
int length = cmdarray.length - 1;
46-
String[] args = new String[length];
47-
System.arraycopy(cmdarray, 1, args, 0, length);
48-
49-
process = new OsProcess(executable, args);
50-
}
51-
5239
/**
5340
* Adds the specified environment variables.
5441
*

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
package org.openqa.selenium.remote;
1919

20-
import static org.openqa.selenium.remote.Browser.HTMLUNIT;
2120
import static org.openqa.selenium.remote.CapabilityType.ACCEPT_INSECURE_CERTS;
2221
import static org.openqa.selenium.remote.CapabilityType.BROWSER_NAME;
2322
import static org.openqa.selenium.remote.CapabilityType.PLATFORM;
@@ -60,11 +59,6 @@ public DesiredCapabilities(Capabilities... others) {
6059
}
6160
}
6261

63-
@Deprecated
64-
public static DesiredCapabilities htmlUnit() {
65-
return new DesiredCapabilities(HTMLUNIT.browserName(), "", Platform.ANY);
66-
}
67-
6862
public void setBrowserName(String browserName) {
6963
setCapability(BROWSER_NAME, browserName);
7064
}

0 commit comments

Comments
 (0)