mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-17 22:23:10 +03:00
Removed unused parameteri
This commit is contained in:
@ -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,10 +1312,9 @@ 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)
|
|
||||||
throws Exception {
|
throws Exception {
|
||||||
String selPackage = Preferences.get("target_package");
|
String selPackage = Preferences.get("target_package");
|
||||||
String selPlatform = Preferences.get("target_platform");
|
String selPlatform = Preferences.get("target_platform");
|
||||||
@ -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]);
|
||||||
|
Reference in New Issue
Block a user