Skip to content

Commit 8aab91c

Browse files
author
Federico Fissore
committed
Removed unused parameteri
1 parent c11a119 commit 8aab91c

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

app/src/processing/app/Base.java

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ public Base(String[] args) throws Exception {
386386

387387
// Do board selection if requested
388388
if (selectBoard != null)
389-
selectBoard(selectBoard, editor);
389+
selectBoard(selectBoard);
390390

391391
if (doUpload) {
392392
// Build and upload
@@ -1292,9 +1292,7 @@ public void rebuildBoardsMenu(JMenu toolsMenu, Editor editor) throws Exception {
12921292

12931293
// Cycle through all boards of this platform
12941294
for (TargetBoard board : targetPlatform.getBoards().values()) {
1295-
JMenuItem item = createBoardMenusAndCustomMenus(
1296-
editor,
1297-
menuItemsToClickAfterStartup,
1295+
JMenuItem item = createBoardMenusAndCustomMenus(menuItemsToClickAfterStartup,
12981296
buttonGroupsMap,
12991297
board, targetPlatform, targetPackage);
13001298
boardsMenu.add(item);
@@ -1314,10 +1312,9 @@ public void rebuildBoardsMenu(JMenu toolsMenu, Editor editor) throws Exception {
13141312
}
13151313

13161314
private JRadioButtonMenuItem createBoardMenusAndCustomMenus(
1317-
final Editor editor,
1318-
List<JMenuItem> menuItemsToClickAfterStartup,
1319-
Map<String, ButtonGroup> buttonGroupsMap,
1320-
TargetBoard board, TargetPlatform targetPlatform, TargetPackage targetPackage)
1315+
List<JMenuItem> menuItemsToClickAfterStartup,
1316+
Map<String, ButtonGroup> buttonGroupsMap,
1317+
TargetBoard board, TargetPlatform targetPlatform, TargetPackage targetPackage)
13211318
throws Exception {
13221319
String selPackage = Preferences.get("target_package");
13231320
String selPlatform = Preferences.get("target_platform");
@@ -1331,7 +1328,7 @@ private JRadioButtonMenuItem createBoardMenusAndCustomMenus(
13311328
@SuppressWarnings("serial")
13321329
Action action = new AbstractAction(board.getName()) {
13331330
public void actionPerformed(ActionEvent actionevent) {
1334-
selectBoard((String) getValue("b"), editor);
1331+
selectBoard((String) getValue("b"));
13351332
}
13361333
};
13371334
action.putValue("b", packageName + ":" + platformName + ":" + boardId);
@@ -1360,7 +1357,7 @@ public void actionPerformed(ActionEvent e) {
13601357
Preferences.set("target_package", (String) getValue("package"));
13611358
Preferences.set("target_platform", (String) getValue("platform"));
13621359
Preferences.set("board", (String) getValue("board"));
1363-
Preferences.set("custom_" + menuId, (String) getValue("board") + "_" + (String) getValue("custom_menu_option"));
1360+
Preferences.set("custom_" + menuId, getValue("board") + "_" + getValue("custom_menu_option"));
13641361

13651362
filterVisibilityOfSubsequentBoardMenus((String) getValue("board"), currentIndex);
13661363

@@ -1472,7 +1469,7 @@ private static JMenuItem selectFirstEnabledMenuItem(JMenu menu) {
14721469
}
14731470

14741471

1475-
private void selectBoard(String selectBoard, Editor editor) {
1472+
private void selectBoard(String selectBoard) {
14761473
String[] split = selectBoard.split(":");
14771474
Preferences.set("target_package", split[0]);
14781475
Preferences.set("target_platform", split[1]);

0 commit comments

Comments
 (0)