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
@@ -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);
}
}