remove useless code

This commit is contained in:
heavyrain2012
2020-05-02 08:15:11 +08:00
parent 8bec058e20
commit 2163b9d580
3 changed files with 0 additions and 17 deletions
@@ -22,7 +22,6 @@ public interface APIPath {
String CreateOrUpdate_Device = "/admin/device/create";
String Get_Device = "/admin/device/get";
String Get_User_Devices = "/admin/device/user_devices";
String Get_Device_Host = "/admin/device/host";
String User_Get_Token = "/admin/user/get_token";
String User_Update_Block_Status = "/admin/user/update_block_status";
String User_Get_Info = "/admin/user/get_info";
@@ -903,14 +903,5 @@ public class Main {
System.out.println("Get device failure");
System.exit(-1);
}
IMResult<OutputDeviceHost> getDeviceHost = UserAdmin.getDeviceHost("deviceId1");
if (getDeviceHost != null && getDeviceHost.getErrorCode() == ErrorCode.ERROR_CODE_SUCCESS && !StringUtil.isNullOrEmpty(getDeviceHost.getResult().getHost())) {
System.out.println("Get user device success");
} else {
System.out.println("Get device failure");
System.exit(-1);
}
}
}
@@ -90,11 +90,4 @@ public class UserAdmin {
inputUserId.setUserId(userId);
return AdminHttpUtils.httpJsonPost(path, inputUserId, OutputDeviceList.class);
}
public static IMResult<OutputDeviceHost> getDeviceHost(String deviceId) throws Exception {
String path = APIPath.Get_Device_Host;
InputDeviceId inputUserId = new InputDeviceId();
inputUserId.setDeviceId(deviceId);
return AdminHttpUtils.httpJsonPost(path, inputUserId, OutputDeviceHost.class);
}
}