remove error observer from case

This commit is contained in:
Karl Mortensen 2015-06-04 10:22:47 -04:00
parent e8b207f5fb
commit a9c95d60c7

View File

@ -70,8 +70,7 @@ import org.sleuthkit.datamodel.SleuthkitJNI.CaseDbHandle.AddImageProcess;
* open at a time. Use getCurrentCase() to retrieve the object for the current * open at a time. Use getCurrentCase() to retrieve the object for the current
* case. * case.
*/ */
@SuppressWarnings("deprecation") // TODO: Remove this when ErrorObserver is replaced. public class Case {
public class Case implements SleuthkitCase.ErrorObserver {
private static final String autopsyVer = Version.getVersion(); // current version of autopsy. Change it when the version is changed 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"; private static final String EVENT_CHANNEL_NAME = "%s-Case-Events";
@ -224,7 +223,6 @@ public class Case implements SleuthkitCase.ErrorObserver {
* constructor. * constructor.
*/ */
private void init() { 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. * Adds a report to the case.
* *