From 09aa1b243e15a12116850ad0f052471ab291f168 Mon Sep 17 00:00:00 2001 From: jmillman Date: Wed, 27 May 2015 13:15:30 -0400 Subject: [PATCH] remove unused variable --- .../autopsy/imagegallery/actions/CategorizeAction.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/ImageGallery/src/org/sleuthkit/autopsy/imagegallery/actions/CategorizeAction.java b/ImageGallery/src/org/sleuthkit/autopsy/imagegallery/actions/CategorizeAction.java index 7fb5d140aa..f69d2e63f5 100644 --- a/ImageGallery/src/org/sleuthkit/autopsy/imagegallery/actions/CategorizeAction.java +++ b/ImageGallery/src/org/sleuthkit/autopsy/imagegallery/actions/CategorizeAction.java @@ -95,7 +95,6 @@ public class CategorizeAction extends AddTagAction { //remove old category tag if necessary List allContentTags = Case.getCurrentCase().getServices().getTagsManager().getContentTagsByContent(file); - boolean hadExistingCategory = false; for (ContentTag ct : allContentTags) { //this is bad: treating tags as categories as long as their names start with prefix //TODO: abandon using tags for categories and instead add a new column to DrawableDB @@ -103,7 +102,6 @@ public class CategorizeAction extends AddTagAction { //LOGGER.log(Level.INFO, "removing old category from {0}", file.getName()); Case.getCurrentCase().getServices().getTagsManager().deleteContentTag(ct); controller.getDatabase().decrementCategoryCount(Category.fromDisplayName(ct.getName().getDisplayName())); - hadExistingCategory = true; } }