From d66292f93371309dc33e8c8cdbe0459639ebfac0 Mon Sep 17 00:00:00 2001 From: madhawap Date: Thu, 1 Dec 2016 16:11:01 +0530 Subject: [PATCH] refactored code --- .../impl/AndroidDeviceManagementService.java | 16 +--------------- .../config/MobileDeviceManagementConfig.java | 12 ------------ 2 files changed, 1 insertion(+), 27 deletions(-) diff --git a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android/src/main/java/org/wso2/carbon/device/mgt/mobile/android/impl/AndroidDeviceManagementService.java b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android/src/main/java/org/wso2/carbon/device/mgt/mobile/android/impl/AndroidDeviceManagementService.java index 7f9913b01..b6376fbe9 100644 --- a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android/src/main/java/org/wso2/carbon/device/mgt/mobile/android/impl/AndroidDeviceManagementService.java +++ b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android/src/main/java/org/wso2/carbon/device/mgt/mobile/android/impl/AndroidDeviceManagementService.java @@ -53,23 +53,9 @@ public class AndroidDeviceManagementService implements DeviceManagementService { return AndroidDeviceManagementService.DEVICE_TYPE_ANDROID; } -// This method is not in use @Override public List getTasksForPlatform() { -// List operationsForPlatform = new ArrayList<>(); -// TaskConfiguration taskConfiguration = -// MobileDeviceConfigurationManager.getInstance().getMobileDeviceManagementConfig() -// .getTaskConfiguration(); -// -// List ops = taskConfiguration.getOperations(); -// List 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; + return null; } @Override diff --git a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android/src/main/java/org/wso2/carbon/device/mgt/mobile/android/impl/config/MobileDeviceManagementConfig.java b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android/src/main/java/org/wso2/carbon/device/mgt/mobile/android/impl/config/MobileDeviceManagementConfig.java index dd873b444..2c65375c7 100644 --- a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android/src/main/java/org/wso2/carbon/device/mgt/mobile/android/impl/config/MobileDeviceManagementConfig.java +++ b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android/src/main/java/org/wso2/carbon/device/mgt/mobile/android/impl/config/MobileDeviceManagementConfig.java @@ -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; -// } - }