Remove unused method parameter
authorPatrick Plitzner <p.plitzner@bgbm.org>
Tue, 15 Aug 2017 17:03:13 +0000 (19:03 +0200)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Tue, 15 Aug 2017 17:03:13 +0000 (19:03 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/CdmViewerContextMenuE4.java

index 5882a707154859c46d8d4a8699a3826e8615adec..deb819c488ab4800499f234efcbc12a0a6eaa96c 100644 (file)
@@ -64,7 +64,7 @@ public class CdmViewerContextMenuE4 {
             Entry<Command, String> entry = enabledCommands.entrySet().iterator().next();
             final Command command = entry.getKey();
             String viewerName = entry.getValue();
-            addCommand(uuid, command, String.format(Messages.CdmViewerContextMenu_OPEN, viewerName), items);
+            addCommand(uuid, command, String.format(Messages.CdmViewerContextMenu_OPEN, viewerName));
         }
         else if(enabledCommands.size()>1){
             MMenu menu = MMenuFactory.INSTANCE.createMenu();
@@ -73,12 +73,12 @@ public class CdmViewerContextMenuE4 {
             for(Entry<Command, String> entry:enabledCommands.entrySet()){
                 String viewerName = entry.getValue();
                 Command command = entry.getKey();
-                menu.getChildren().add(addCommand(uuid, command, viewerName, items));
+                menu.getChildren().add(addCommand(uuid, command, viewerName));
             }
         }
     }
 
-    public MHandledMenuItem addCommand(UUID uuid, Command command, String commandLabel, List<MMenuElement> items) {
+    public MHandledMenuItem addCommand(UUID uuid, Command command, String commandLabel) {
         MHandledMenuItem menuItem = MMenuFactory.INSTANCE.createHandledMenuItem();
         menuItem.setLabel(commandLabel);
         MCommand mCommand = MCommandsFactory.INSTANCE.createCommand();