Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cooja: remove unused method #931

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions doc/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
15 changes: 0 additions & 15 deletions java/org/contikios/cooja/Cooja.java
Original file line number Diff line number Diff line change
Expand Up @@ -848,21 +848,6 @@ public boolean registerPlugin(final Class<? extends Plugin> 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();
}
Expand Down