Skip to content

Commit 5e4fec9

Browse files
committed
removed unused variables
Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>
1 parent e52a276 commit 5e4fec9

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

‎plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/KVMStorageProcessor.java‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,6 @@ protected String copyToS3(File srcFile, S3TO destStore, String destPath) {
558558
protected Answer copyToObjectStore(CopyCommand cmd) {
559559
DataTO srcData = cmd.getSrcTO();
560560
DataTO destData = cmd.getDestTO();
561-
SnapshotObjectTO snapshot = (SnapshotObjectTO)srcData;
562561
DataStoreTO imageStore = destData.getDataStore();
563562
NfsTO srcStore = (NfsTO)srcData.getDataStore();
564563
String srcPath = srcData.getPath();
@@ -600,9 +599,7 @@ protected Answer copyToObjectStore(CopyCommand cmd) {
600599
}
601600

602601
protected Answer backupSnapshotForObjectStore(CopyCommand cmd) {
603-
DataTO srcData = cmd.getSrcTO();
604602
DataTO destData = cmd.getDestTO();
605-
SnapshotObjectTO snapshot = (SnapshotObjectTO)srcData;
606603
DataStoreTO imageStore = destData.getDataStore();
607604
DataTO cacheData = cmd.getCacheTO();
608605
if (cacheData == null) {
@@ -683,8 +680,6 @@ public Answer backupSnapshot(CopyCommand cmd) {
683680
Rbd rbd = new Rbd(io);
684681
RbdImage image = rbd.open(snapshotDisk.getName(), snapshotName);
685682

686-
long startTime = System.currentTimeMillis() / 1000;
687-
688683
File snapDir = new File(snapshotDestPath);
689684
s_logger.debug("Attempting to create " + snapDir.getAbsolutePath() + " recursively");
690685
FileUtils.forceMkdir(snapDir);

0 commit comments

Comments
 (0)