Skip to content

Commit

Permalink
Remove EventListener plugin
Browse files Browse the repository at this point in the history
This plugin uses the deprecated
Observer/Observable, so remove it.
  • Loading branch information
pjonsson committed Sep 16, 2023
1 parent b5d0563 commit 07c82a4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 360 deletions.
4 changes: 4 additions & 0 deletions doc/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Cooja User Interface Changes

### Removed the EventListener plugin

This plugin used the deprecated observable pattern.

## Cooja Simulation File Changes

### Expand $(MAKE) in csc files
Expand Down
2 changes: 0 additions & 2 deletions java/org/contikios/cooja/ExtensionManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
import org.contikios.cooja.plugins.BaseRSSIconf;
import org.contikios.cooja.plugins.BufferListener;
import org.contikios.cooja.plugins.DGRMConfigurator;
import org.contikios.cooja.plugins.EventListener;
import org.contikios.cooja.plugins.LogListener;
import org.contikios.cooja.plugins.Mobility;
import org.contikios.cooja.plugins.MoteInformation;
Expand Down Expand Up @@ -79,7 +78,6 @@ public class ExtensionManager {
registerBuiltinPlugin(MoteInformation.class);
registerBuiltinPlugin(MoteInterfaceViewer.class);
registerBuiltinPlugin(VariableWatcher.class);
registerBuiltinPlugin(EventListener.class);
registerBuiltinPlugin(RadioLogger.class);
registerBuiltinPlugin(ScriptRunner.class);
registerBuiltinPlugin(Notes.class);
Expand Down
3 changes: 2 additions & 1 deletion java/org/contikios/cooja/Simulation.java
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,8 @@ public Simulation(SimConfig cfg, Cooja cooja, String title, boolean generateSeed
// Skip plugins that have been removed or merged into other classes.
if ("org.contikios.cooja.plugins.SimControl".equals(pluginClassName) ||
"org.contikios.cooja.plugins.SimInformation".equals(pluginClassName) ||
"org.contikios.cooja.plugins.MoteTypeInformation".equals(pluginClassName)) {
"org.contikios.cooja.plugins.MoteTypeInformation".equals(pluginClassName) ||
"org.contikios.cooja.plugins.EventListener".equals(pluginClassName)) {
continue;
}
// Backwards compatibility: old visualizers were replaced.
Expand Down
357 changes: 0 additions & 357 deletions java/org/contikios/cooja/plugins/EventListener.java

This file was deleted.

0 comments on commit 07c82a4

Please sign in to comment.