Add method to delete a Sone.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 13 Oct 2010 14:13:17 +0000 (16:13 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 13 Oct 2010 14:13:17 +0000 (16:13 +0200)
src/main/java/net/pterodactylus/sone/core/Core.java

index c5c7308..7498356 100644 (file)
@@ -153,6 +153,16 @@ public class Core extends AbstractService {
                return sone;
        }
 
+       /**
+        * Deletes the given Sone from this plugin instance.
+        *
+        * @param sone
+        *            The sone to delete
+        */
+       public void deleteSone(Sone sone) {
+               localSones.remove(sone);
+       }
+
        //
        // SERVICE METHODS
        //