Skip to content

Commit 8eba0ee

Browse files
committed
ApiDispatcher: Remove helper method that proxies via ApiResponseHelper to get entity by IdentityDao
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
1 parent a35db97 commit 8eba0ee

2 files changed

Lines changed: 0 additions & 11 deletions

File tree

‎server/src/com/cloud/api/ApiDispatcher.java‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@
6464
import com.cloud.utils.db.GenericDao;
6565
import com.cloud.utils.exception.CSExceptionErrorCode;
6666
import com.cloud.utils.exception.CloudRuntimeException;
67-
import com.cloud.uuididentity.dao.IdentityDao;
6867

6968
// ApiDispatcher: A class that dispatches API commands to the appropriate manager for execution.
7069
public class ApiDispatcher {
@@ -75,7 +74,6 @@ public class ApiDispatcher {
7574
@Inject private AsyncJobManager _asyncMgr = null;
7675
@Inject private AccountManager _accountMgr = null;
7776
@Inject EntityManager _entityMgr = null;
78-
@Inject IdentityDao _identityDao = null;
7977

8078
Map<String, Class<? extends GenericDao>> _daoNameMap = new HashMap<String, Class<? extends GenericDao>>();
8179
// singleton class
@@ -708,8 +706,4 @@ public static void plugService(Field field, BaseCmd cmd) {
708706
throw new CloudRuntimeException("Internal error at plugService for command " + cmd.getCommandName() + " [field " + field.getName() + " is not accessible]");
709707
}
710708
}
711-
712-
public static Long getIdentiyId(String tableName, String token) {
713-
return s_instance._identityDao.getIdentityId(tableName, token);
714-
}
715709
}

‎server/src/com/cloud/api/ApiResponseHelper.java‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2791,11 +2791,6 @@ public StorageNetworkIpRangeResponse createStorageNetworkIpRangeResponse(Storage
27912791
return response;
27922792
}
27932793

2794-
@Override
2795-
public Long getIdentiyId(String tableName, String token) {
2796-
return ApiDispatcher.getIdentiyId(tableName, token);
2797-
}
2798-
27992794
@Override
28002795
public ResourceTagResponse createResourceTagResponse(ResourceTag resourceTag, boolean keyValueOnly) {
28012796
ResourceTagJoinVO rto = ApiDBUtils.newResourceTagView(resourceTag);

0 commit comments

Comments
 (0)