1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-02 13:24:12 +01:00

Removed unused variable

This commit is contained in:
Cristian Maglie 2013-12-03 17:51:37 +01:00
parent 1d8901d9bb
commit cc347e4ea3

View File

@ -1432,7 +1432,6 @@ public class Base {
menuItemsToClickAfterStartup.add(item); menuItemsToClickAfterStartup.add(item);
} }
int i = 0;
PreferencesMap customMenus = targetPlatform.getCustomMenus(); PreferencesMap customMenus = targetPlatform.getCustomMenus();
for (final String menuId : customMenus.keySet()) { for (final String menuId : customMenus.keySet()) {
String title = customMenus.get(menuId); String title = customMenus.get(menuId);
@ -1440,8 +1439,6 @@ public class Base {
if (board.hasMenu(menuId)) { if (board.hasMenu(menuId)) {
PreferencesMap boardCustomMenu = board.getMenuLabels(menuId); PreferencesMap boardCustomMenu = board.getMenuLabels(menuId);
final int currentIndex = i + 1 + 1; //plus 1 to skip the first board menu, plus 1 to keep the custom menu next to this one
i++;
for (String customMenuOption : boardCustomMenu.keySet()) { for (String customMenuOption : boardCustomMenu.keySet()) {
@SuppressWarnings("serial") @SuppressWarnings("serial")
Action subAction = new AbstractAction(_(boardCustomMenu.get(customMenuOption))) { Action subAction = new AbstractAction(_(boardCustomMenu.get(customMenuOption))) {