From d877fa1d1f87101591b4e605f52423e15b9eba2c Mon Sep 17 00:00:00 2001 From: "Peter A. Jonsson" Date: Wed, 7 Dec 2022 21:54:25 +0100 Subject: [PATCH] Cooja: remove unused method --- doc/ChangeLog.md | 4 ++++ java/org/contikios/cooja/Cooja.java | 15 --------------- 2 files changed, 4 insertions(+), 15 deletions(-) diff --git a/doc/ChangeLog.md b/doc/ChangeLog.md index b9e73fc1db..f1cc9ac803 100644 --- a/doc/ChangeLog.md +++ b/doc/ChangeLog.md @@ -23,6 +23,10 @@ use a double dash for consistency. ## Cooja API changes for plugins outside the main tree +### Removed getPlugin(String) in Cooja + +Iterate over getStartedPlugins instead. + ### Removed registerMote/unregisterMote in RadioMedium Use registerRadioInterface/unregisterRadioInterface instead. diff --git a/java/org/contikios/cooja/Cooja.java b/java/org/contikios/cooja/Cooja.java index 0c8a1a8b01..9b3ddf85fc 100644 --- a/java/org/contikios/cooja/Cooja.java +++ b/java/org/contikios/cooja/Cooja.java @@ -848,21 +848,6 @@ public boolean registerPlugin(final Class pluginClass) { return false; } - /** - * Returns started plugin that ends with given class name, if any. - * - * @param classname Class name - * @return Plugin instance - */ - public Plugin getPlugin(String classname) { - for (Plugin p: startedPlugins) { - if (p.getClass().getName().endsWith(classname)) { - return p; - } - } - return null; - } - public boolean hasStartedPlugins() { return !startedPlugins.isEmpty(); }