CID-1223274: Remove dead local storage code from VolumeApiServiceImpl

Signed-off-by: Rohit Yadav <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/60e492ae
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/60e492ae
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/60e492ae

Branch: refs/heads/master
Commit: 60e492aeb9a9ea53f6e741ec6718c618a9b27aeb
Parents: e70f75d
Author: Rohit Yadav <[email protected]>
Authored: Thu Sep 25 16:43:48 2014 +0200
Committer: Rohit Yadav <[email protected]>
Committed: Thu Sep 25 16:43:48 2014 +0200

----------------------------------------------------------------------
 server/src/com/cloud/storage/VolumeApiServiceImpl.java | 5 -----
 1 file changed, 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/60e492ae/server/src/com/cloud/storage/VolumeApiServiceImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/storage/VolumeApiServiceImpl.java 
b/server/src/com/cloud/storage/VolumeApiServiceImpl.java
index cf18555..8ccede7 100644
--- a/server/src/com/cloud/storage/VolumeApiServiceImpl.java
+++ b/server/src/com/cloud/storage/VolumeApiServiceImpl.java
@@ -291,11 +291,6 @@ public class VolumeApiServiceImpl extends ManagerBase 
implements VolumeApiServic
             throw new IllegalArgumentException("Image format is incorrect " + 
format + ". Supported formats are " + 
EnumUtils.listValues(ImageFormat.values()));
         }
 
-        String userSpecifiedName = volumeName;
-        if (userSpecifiedName == null) {
-            userSpecifiedName = getRandomVolumeName();
-        }
-
         UriUtils.validateUrl(format, url);
 
 

Reply via email to