From a9c95d60c702aeb7b53c6bd2ad9a05eab5e9f076 Mon Sep 17 00:00:00 2001 From: Karl Mortensen Date: Thu, 4 Jun 2015 10:22:47 -0400 Subject: [PATCH] remove error observer from case --- Core/src/org/sleuthkit/autopsy/casemodule/Case.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/casemodule/Case.java b/Core/src/org/sleuthkit/autopsy/casemodule/Case.java index 050a1a6304..e1a4fe6e9b 100644 --- a/Core/src/org/sleuthkit/autopsy/casemodule/Case.java +++ b/Core/src/org/sleuthkit/autopsy/casemodule/Case.java @@ -70,8 +70,7 @@ import org.sleuthkit.datamodel.SleuthkitJNI.CaseDbHandle.AddImageProcess; * open at a time. Use getCurrentCase() to retrieve the object for the current * case. */ -@SuppressWarnings("deprecation") // TODO: Remove this when ErrorObserver is replaced. -public class Case implements SleuthkitCase.ErrorObserver { +public class Case { private static final String autopsyVer = Version.getVersion(); // current version of autopsy. Change it when the version is changed private static final String EVENT_CHANNEL_NAME = "%s-Case-Events"; @@ -224,7 +223,6 @@ public class Case implements SleuthkitCase.ErrorObserver { * constructor. */ private void init() { - db.addErrorObserver(this); } /** @@ -1342,11 +1340,6 @@ public class Case implements SleuthkitCase.ErrorObserver { } } - @Override - public void receiveError(String context, String errorMessage) { - MessageNotifyUtil.Notify.error(context, errorMessage); - } - /** * Adds a report to the case. *