Skip to content

Commit ea98e17

Browse files
committed
java,safari: Deleting deprecated methods
1 parent 354810c commit ea98e17

File tree

1 file changed

+0
-39
lines changed

1 file changed

+0
-39
lines changed

Diff for: java/client/src/org/openqa/selenium/safari/SafariOptions.java

-39
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,13 @@
1818
package org.openqa.selenium.safari;
1919

2020
import com.google.common.base.Objects;
21-
import com.google.common.base.Optional;
22-
import com.google.common.collect.ImmutableList;
2321
import com.google.gson.JsonObject;
2422

2523
import org.openqa.selenium.Capabilities;
2624
import org.openqa.selenium.WebDriverException;
2725
import org.openqa.selenium.remote.DesiredCapabilities;
2826

29-
import java.io.File;
3027
import java.io.IOException;
31-
import java.util.List;
3228
import java.util.Map;
3329

3430
/**
@@ -98,18 +94,6 @@ public static SafariOptions fromCapabilities(Capabilities capabilities)
9894

9995
// Setters
10096

101-
/** @deprecated This method is now a no-op and will be removed in 2.46.0. */
102-
public void addExtensions(File... paths) {}
103-
104-
/** @deprecated This method is now a no-op and will be removed in 2.46.0. */
105-
public void addExtensions(List<File> paths) {}
106-
107-
/** @deprecated This method is now a no-op and will be removed in 2.46.0. */
108-
public void setDataDir(File dataDir) {}
109-
110-
/** @deprecated This method is now a no-op and will be removed in 2.46.0. */
111-
public void setDriverExtension(File driverExtension) {}
112-
11397
/**
11498
* Set the port the {@link SafariDriverServer} should be started on. Defaults to 0, in which case
11599
* the server selects a free port.
@@ -121,9 +105,6 @@ public void setPort(int port) {
121105
this.port = port;
122106
}
123107

124-
/** @deprecated This method is now a no-op and will be removed in 2.46.0. */
125-
public void setSkipExtensionInstallation(boolean skipExtensionInstallation) {}
126-
127108
/**
128109
* Instruct the SafariDriver to delete all existing session data when starting a new session.
129110
* This includes browser history, cache, cookies, HTML5 local storage, and HTML5 databases.
@@ -140,16 +121,6 @@ public void setUseCleanSession(boolean useCleanSession) {
140121

141122
// Getters
142123

143-
/** @deprecated This method is now a no-op and will be removed in 2.46.0. */
144-
public Optional<File> getDataDir() {
145-
return Optional.absent();
146-
}
147-
148-
/** @deprecated This method is now a no-op and will be removed in 2.46.0. */
149-
public List<File> getExtensions() {
150-
return ImmutableList.of();
151-
}
152-
153124
/**
154125
* @return The port the {@link SafariDriverServer} should be started on.
155126
* If 0, the server should select a free port.
@@ -159,16 +130,6 @@ public int getPort() {
159130
return port;
160131
}
161132

162-
/** @deprecated This method is now a no-op and will be removed in 2.46.0. */
163-
public boolean getSkipExtensionInstallation() {
164-
return false;
165-
}
166-
167-
/** @deprecated This method is now a no-op and will be removed in 2.46.0. */
168-
public boolean getUseCustomDriverExtension() {
169-
return false;
170-
}
171-
172133
/**
173134
* @return Whether the SafariDriver should erase all session data before launching Safari.
174135
* @see #setUseCleanSession(boolean)

0 commit comments

Comments
 (0)