refactored code

merge-requests/1/head
madhawap 8 years ago
parent 7d7bd4794a
commit d66292f933

@ -53,22 +53,8 @@ public class AndroidDeviceManagementService implements DeviceManagementService {
return AndroidDeviceManagementService.DEVICE_TYPE_ANDROID;
}
// This method is not in use
@Override
public List<TaskOperation> getTasksForPlatform() {
// List<String> operationsForPlatform = new ArrayList<>();
// TaskConfiguration taskConfiguration =
// MobileDeviceConfigurationManager.getInstance().getMobileDeviceManagementConfig()
// .getTaskConfiguration();
//
// List<TaskConfiguration.Operation> ops = taskConfiguration.getOperations();
// List<TaskOperation> taskOperations = new ArrayList<>();
// for (TaskConfiguration.Operation op : ops) {
// TaskOperation taskOperation = new TaskOperation();
// taskOperation.setTaskName(op.getOperationName());
// taskOperation.setRecurrentTimes(op.getRecurrency());
// taskOperations.add(taskOperation);
// }
return null;
}

@ -18,8 +18,6 @@
package org.wso2.carbon.device.mgt.mobile.android.impl.config;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
@ -30,7 +28,6 @@ import javax.xml.bind.annotation.XmlRootElement;
public final class MobileDeviceManagementConfig {
private MobileDeviceManagementRepository mobileDeviceMgtRepository;
// private TaskConfiguration taskConfiguration;
@XmlElement(name = "ManagementRepository", nillable = false)
public MobileDeviceManagementRepository getMobileDeviceMgtRepository() {
@ -42,13 +39,4 @@ public final class MobileDeviceManagementConfig {
this.mobileDeviceMgtRepository = mobileDeviceMgtRepository;
}
// @XmlElement(name = "TaskConfiguration", required = true)
// public TaskConfiguration getTaskConfiguration() {
// return taskConfiguration;
// }
//
// public void setTaskConfiguration(TaskConfiguration taskConfiguration) {
// this.taskConfiguration = taskConfiguration;
// }
}

Loading…
Cancel
Save