Commit 8ccd3c26 authored by Robert Butora's avatar Robert Butora
Browse files

mcutout: removes unused file-delete code (mcutout-workdir removed with FileUtils)

parent 0eda76ab
Loading
Loading
Loading
Loading
+0 −28
Original line number Diff line number Diff line
@@ -4,7 +4,6 @@ import java.io.File;

class MCutResult
{

   class Cut
   {
      public enum ContentType {FILENAME, BAD_REQUEST, SERVICE_ERROR};
@@ -21,33 +20,6 @@ class MCutResult
         jo.put("content", content);
         return jo;
      }

      void deleteFile()
      {
         if(contentType == ContentType.FILENAME)
         {
            File cutFile = new File(content);
            cutFile.delete();
         }
      }

	}

   void deleteResJson()
   {
      if(resJsonPathname != null)
      {
         File resJson = new File(resJsonPathname);
         resJson.delete();
      }
   }

   public void deleteCutFiles()
   {
      for(Cut cut : cutResArr)
      {
         cut.deleteFile();
      }
	}

   public String fileName;