18
18
package org .openqa .selenium .safari ;
19
19
20
20
import com .google .common .base .Objects ;
21
- import com .google .common .base .Optional ;
22
- import com .google .common .collect .ImmutableList ;
23
21
import com .google .gson .JsonObject ;
24
22
25
23
import org .openqa .selenium .Capabilities ;
26
24
import org .openqa .selenium .WebDriverException ;
27
25
import org .openqa .selenium .remote .DesiredCapabilities ;
28
26
29
- import java .io .File ;
30
27
import java .io .IOException ;
31
- import java .util .List ;
32
28
import java .util .Map ;
33
29
34
30
/**
@@ -98,18 +94,6 @@ public static SafariOptions fromCapabilities(Capabilities capabilities)
98
94
99
95
// Setters
100
96
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
-
113
97
/**
114
98
* Set the port the {@link SafariDriverServer} should be started on. Defaults to 0, in which case
115
99
* the server selects a free port.
@@ -121,9 +105,6 @@ public void setPort(int port) {
121
105
this .port = port ;
122
106
}
123
107
124
- /** @deprecated This method is now a no-op and will be removed in 2.46.0. */
125
- public void setSkipExtensionInstallation (boolean skipExtensionInstallation ) {}
126
-
127
108
/**
128
109
* Instruct the SafariDriver to delete all existing session data when starting a new session.
129
110
* This includes browser history, cache, cookies, HTML5 local storage, and HTML5 databases.
@@ -140,16 +121,6 @@ public void setUseCleanSession(boolean useCleanSession) {
140
121
141
122
// Getters
142
123
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
-
153
124
/**
154
125
* @return The port the {@link SafariDriverServer} should be started on.
155
126
* If 0, the server should select a free port.
@@ -159,16 +130,6 @@ public int getPort() {
159
130
return port ;
160
131
}
161
132
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
-
172
133
/**
173
134
* @return Whether the SafariDriver should erase all session data before launching Safari.
174
135
* @see #setUseCleanSession(boolean)
0 commit comments