Code Smells in emsdriver conf
[vfc/nfvo/driver/ems.git] / ems / boco / src / main / java / org / onap / vfc / nfvo / emsdriver / commons / utils / Zip.java
index b48287d..cb6d57b 100644 (file)
@@ -39,14 +39,7 @@ public class Zip {
         this.zipFilePath = zipFilePath;
         this.compressPath = compressFile.getAbsolutePath();
 
-        /*if (this.zipFilePath == null) {
-            StringBuffer zipFilePathBuf = new StringBuffer(this.compressPath);
-            int bufLen = zipFilePathBuf.length();
-            if (zipFilePathBuf.charAt(bufLen - 1) == '/')
-                zipFilePathBuf.deleteCharAt(bufLen - 1);
-            this.zipFilePath = zipFilePathBuf.append(".zip").toString();
-        }*/
-        relativeAddrIdx = this.compressPath.lastIndexOf(File.separator) + 1;
+       relativeAddrIdx = this.compressPath.lastIndexOf(File.separator) + 1;
     }
 
     public void compress() throws IOException {