From 3c3045abd16f5717662eeedb062113727822416f Mon Sep 17 00:00:00 2001 From: William Schaefer Date: Wed, 23 Jun 2021 14:51:30 -0400 Subject: [PATCH] 7669 simplify logic for isSupported when CR not enabled --- .../application/OtherOccurrences.java | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/centralrepository/application/OtherOccurrences.java b/Core/src/org/sleuthkit/autopsy/centralrepository/application/OtherOccurrences.java index 934c8015a4..dde124dde9 100755 --- a/Core/src/org/sleuthkit/autopsy/centralrepository/application/OtherOccurrences.java +++ b/Core/src/org/sleuthkit/autopsy/centralrepository/application/OtherOccurrences.java @@ -170,7 +170,6 @@ public final class OtherOccurrences { public static AbstractFile getAbstractFileFromNode(Node node) { BlackboardArtifactTag nodeBbArtifactTag = node.getLookup().lookup(BlackboardArtifactTag.class); ContentTag nodeContentTag = node.getLookup().lookup(ContentTag.class); - BlackboardArtifact nodeBbArtifact = node.getLookup().lookup(BlackboardArtifact.class); AbstractFile nodeAbstractFile = node.getLookup().lookup(AbstractFile.class); if (nodeBbArtifactTag != null) { @@ -180,18 +179,6 @@ public final class OtherOccurrences { } } else if (nodeContentTag != null) { Content content = nodeContentTag.getContent(); - if (content instanceof AbstractFile) { - return (AbstractFile) content; - } - } else if (nodeBbArtifact != null) { - Content content; - try { - content = nodeBbArtifact.getSleuthkitCase().getContentById(nodeBbArtifact.getObjectID()); - } catch (TskCoreException ex) { - logger.log(Level.SEVERE, "Error retrieving blackboard artifact", ex); // NON-NLS - return null; - } - if (content instanceof AbstractFile) { return (AbstractFile) content; }