From af58e5ec880bb56c8a0d2f3a3b48c4178e8d7c3a Mon Sep 17 00:00:00 2001 From: prabathabey Date: Mon, 30 May 2016 16:42:10 +0530 Subject: [PATCH] Code cleanup --- .../mgt/core/operation/mgt/OperationManagerImpl.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/operation/mgt/OperationManagerImpl.java b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/operation/mgt/OperationManagerImpl.java index 3d60f9f78a..7535349ca2 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/operation/mgt/OperationManagerImpl.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/operation/mgt/OperationManagerImpl.java @@ -762,9 +762,7 @@ public class OperationManagerImpl implements OperationManager { } try { OperationManagementDAOFactory.openConnection(); - Activity act = operationDAO.getActivity(operationId); -// act.setActivityId(activity); - return act; + return operationDAO.getActivity(operationId); } catch (SQLException e) { throw new OperationManagementException("Error occurred while opening a connection to the data source.", e); } catch (OperationManagementDAOException e) { @@ -850,8 +848,4 @@ public class OperationManagerImpl implements OperationManager { return status; } - private void setActivityId(Operation operation, int enrolmentId) { - operation.setActivityId(DeviceManagementConstants.OperationAttributes.ACTIVITY + enrolmentId); - } - }