Skip to content

Commit 1c86598

Browse files
Delete command was moved to the MobileCommand
1 parent 24e5e21 commit 1c86598

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

src/main/java/io/appium/java_client/AppiumDriver.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
import org.openqa.selenium.WebElement;
5858
import org.openqa.selenium.html5.Location;
5959

60-
import org.openqa.selenium.remote.CommandInfo;
6160
import org.openqa.selenium.remote.DesiredCapabilities;
6261
import org.openqa.selenium.remote.DriverCommand;
6362
import org.openqa.selenium.remote.ErrorHandler;
@@ -67,7 +66,6 @@
6766
import org.openqa.selenium.remote.Response;
6867
import org.openqa.selenium.remote.html5.RemoteLocationContext;
6968
import org.openqa.selenium.remote.http.HttpClient;
70-
import org.openqa.selenium.remote.http.HttpMethod;
7169
import org.openqa.selenium.remote.internal.JsonToWebElementConverter;
7270

7371
import java.lang.reflect.Constructor;
@@ -189,11 +187,6 @@ protected static Capabilities substituteMobilePlatform(Capabilities originalCapa
189187
return dc;
190188
}
191189

192-
@SuppressWarnings("unused")
193-
private static CommandInfo deleteC(String url) {
194-
return new CommandInfo(url, HttpMethod.DELETE);
195-
}
196-
197190
@Override public List<T> findElements(By by) {
198191
return super.findElements(by);
199192
}

src/main/java/io/appium/java_client/MobileCommand.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ public static CommandInfo postC(String url) {
126126
return new CommandInfo(url, HttpMethod.POST);
127127
}
128128

129+
public static CommandInfo deleteC(String url) {
130+
return new CommandInfo(url, HttpMethod.DELETE);
131+
}
132+
129133
/**
130134
* @param param is a parameter name.
131135
* @param value is the parameter value.

0 commit comments

Comments
 (0)