Skip to content
Snippets Groups Projects
Commit 1ff1ca53 authored by apriestman's avatar apriestman
Browse files

Cleanup

parent 6c926f8f
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,6 @@ ...@@ -33,7 +33,6 @@
import java.util.logging.Level; import java.util.logging.Level;
import java.util.logging.Logger; import java.util.logging.Logger;
import org.sleuthkit.datamodel.SleuthkitCase.CaseDbTransaction; import org.sleuthkit.datamodel.SleuthkitCase.CaseDbTransaction;
import static org.sleuthkit.datamodel.SleuthkitCase.closeStatement;
/** /**
* This is a utility class to allow the native C code to write to the * This is a utility class to allow the native C code to write to the
...@@ -459,7 +458,6 @@ long addLayoutFile(long parentObjId, ...@@ -459,7 +458,6 @@ long addLayoutFile(long parentObjId,
long fsObjId, long dataSourceObjId, long fsObjId, long dataSourceObjId,
int fileType, int fileType,
String name, long size) { String name, long size) {
PreparedStatement insertFilesStmt = null;
try { try {
// The file system may be null for layout files // The file system may be null for layout files
...@@ -495,9 +493,7 @@ long addLayoutFile(long parentObjId, ...@@ -495,9 +493,7 @@ long addLayoutFile(long parentObjId,
+ ", file system object ID: " + fsObjId + ", name: " + name, ex); + ", file system object ID: " + fsObjId + ", name: " + name, ex);
revertTransaction(); revertTransaction();
return -1; return -1;
} finally { }
closeStatement(insertFilesStmt);
}
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment