From bdc25c7fe8763346b82d00971359fecdaf2f03e3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 13 Oct 2010 16:13:17 +0200 Subject: [PATCH] Add method to delete a Sone. --- src/main/java/net/pterodactylus/sone/core/Core.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index c5c7308..7498356 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -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 // -- 2.7.4