1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-16 11:21:18 +03:00

Removed unused parameteri

This commit is contained in:
Federico Fissore
2013-10-24 13:16:46 +02:00
parent c11a119996
commit 8aab91c6ec

View File

@ -386,7 +386,7 @@ public class Base {
// Do board selection if requested // Do board selection if requested
if (selectBoard != null) if (selectBoard != null)
selectBoard(selectBoard, editor); selectBoard(selectBoard);
if (doUpload) { if (doUpload) {
// Build and upload // Build and upload
@ -1292,9 +1292,7 @@ public class Base {
// Cycle through all boards of this platform // Cycle through all boards of this platform
for (TargetBoard board : targetPlatform.getBoards().values()) { for (TargetBoard board : targetPlatform.getBoards().values()) {
JMenuItem item = createBoardMenusAndCustomMenus( JMenuItem item = createBoardMenusAndCustomMenus(menuItemsToClickAfterStartup,
editor,
menuItemsToClickAfterStartup,
buttonGroupsMap, buttonGroupsMap,
board, targetPlatform, targetPackage); board, targetPlatform, targetPackage);
boardsMenu.add(item); boardsMenu.add(item);
@ -1314,7 +1312,6 @@ public class Base {
} }
private JRadioButtonMenuItem createBoardMenusAndCustomMenus( private JRadioButtonMenuItem createBoardMenusAndCustomMenus(
final Editor editor,
List<JMenuItem> menuItemsToClickAfterStartup, List<JMenuItem> menuItemsToClickAfterStartup,
Map<String, ButtonGroup> buttonGroupsMap, Map<String, ButtonGroup> buttonGroupsMap,
TargetBoard board, TargetPlatform targetPlatform, TargetPackage targetPackage) TargetBoard board, TargetPlatform targetPlatform, TargetPackage targetPackage)
@ -1331,7 +1328,7 @@ public class Base {
@SuppressWarnings("serial") @SuppressWarnings("serial")
Action action = new AbstractAction(board.getName()) { Action action = new AbstractAction(board.getName()) {
public void actionPerformed(ActionEvent actionevent) { public void actionPerformed(ActionEvent actionevent) {
selectBoard((String) getValue("b"), editor); selectBoard((String) getValue("b"));
} }
}; };
action.putValue("b", packageName + ":" + platformName + ":" + boardId); action.putValue("b", packageName + ":" + platformName + ":" + boardId);
@ -1360,7 +1357,7 @@ public class Base {
Preferences.set("target_package", (String) getValue("package")); Preferences.set("target_package", (String) getValue("package"));
Preferences.set("target_platform", (String) getValue("platform")); Preferences.set("target_platform", (String) getValue("platform"));
Preferences.set("board", (String) getValue("board")); Preferences.set("board", (String) getValue("board"));
Preferences.set("custom_" + menuId, (String) getValue("board") + "_" + (String) getValue("custom_menu_option")); Preferences.set("custom_" + menuId, getValue("board") + "_" + getValue("custom_menu_option"));
filterVisibilityOfSubsequentBoardMenus((String) getValue("board"), currentIndex); filterVisibilityOfSubsequentBoardMenus((String) getValue("board"), currentIndex);
@ -1472,7 +1469,7 @@ public class Base {
} }
private void selectBoard(String selectBoard, Editor editor) { private void selectBoard(String selectBoard) {
String[] split = selectBoard.split(":"); String[] split = selectBoard.split(":");
Preferences.set("target_package", split[0]); Preferences.set("target_package", split[0]);
Preferences.set("target_platform", split[1]); Preferences.set("target_platform", split[1]);