Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,6 @@ import java.io.File; ...@@ -4,7 +4,6 @@ import java.io.File;
class MCutResult class MCutResult
{ {
class Cut class Cut
{ {
public enum ContentType {FILENAME, BAD_REQUEST, SERVICE_ERROR}; public enum ContentType {FILENAME, BAD_REQUEST, SERVICE_ERROR};
...@@ -21,35 +20,8 @@ class MCutResult ...@@ -21,35 +20,8 @@ class MCutResult
jo.put("content", content); jo.put("content", content);
return jo; 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; public String fileName;
public String resJsonPathname; public String resJsonPathname;
public long fileSize; public long fileSize;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment