Convert “Sone insert was aborted” into EventBus-based event.
[Sone.git] / src / main / java / net / pterodactylus / sone / core / CoreListenerManager.java
index a4c3b78..b8df010 100644 (file)
@@ -18,7 +18,6 @@
 package net.pterodactylus.sone.core;
 
 import net.pterodactylus.sone.data.Image;
-import net.pterodactylus.sone.data.Sone;
 import net.pterodactylus.util.event.AbstractListenerManager;
 import net.pterodactylus.util.version.Version;
 
@@ -44,21 +43,6 @@ public class CoreListenerManager extends AbstractListenerManager<Core, CoreListe
        //
 
        /**
-        * Notifies all listeners that the insert of the given Sone was aborted.
-        *
-        * @see SoneInsertListener#insertStarted(Sone)
-        * @param sone
-        *            The Sone being inserted
-        * @param cause
-        *            The cause for the abortion (may be {@code null}
-        */
-       void fireSoneInsertAborted(Sone sone, Throwable cause) {
-               for (CoreListener coreListener : getListeners()) {
-                       coreListener.soneInsertAborted(sone, cause);
-               }
-       }
-
-       /**
         * Notifies all listeners that a new version was found.
         *
         * @see CoreListener#updateFound(Version, long, long)