1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-01-18 07:52:14 +01:00

Removed some java compile time warnings

This commit is contained in:
Cristian Maglie 2013-03-01 13:35:27 +01:00
parent cdf2b8d9fe
commit 373113454d
3 changed files with 14 additions and 14 deletions

View File

@ -1082,13 +1082,6 @@ public class Base {
PreferencesMap prefs = targetPlatform.getPreferences();
String targetname = prefs.get("name");
if (false) {
// Hack to extract these words by gettext tool.
// These phrases are actually defined in the "platform.txt".
String notused = _("Arduino AVR Boards");
notused = _("Arduino ARM (32-bits) Boards");
}
JMenuItem platformItem = new JMenuItem(_(targetname));
platformItem.setEnabled(false);
importMenu.add(platformItem);

View File

@ -14,7 +14,6 @@
package processing.app;
import java.util.*;
import java.util.Locale.*;
import java.text.MessageFormat;
public class I18n {
@ -58,4 +57,18 @@ public class I18n {
public static String format(String fmt, Object ... args) {
return MessageFormat.format(fmt, args);
}
/**
* Does nothing.
*
* This method is an hack to extract words with gettext tool.
*/
protected static void unusedStrings() {
// These phrases are defined in the "platform.txt".
_("Arduino AVR Boards");
_("Arduino ARM (32-bits) Boards");
// This word is defined in the "boards.txt".
_("Processor");
}
}

View File

@ -47,12 +47,6 @@ public class TargetPlatform {
programmers = new HashMap<String, PreferencesMap>();
preferences = new PreferencesMap();
if (false) {
// Hack to extract this word by gettext tool.
// This word is actually defined in the "boards.txt".
String notused = _("Processor");
}
try {
File boardsFile = new File(_folder, "boards.txt");
if (boardsFile.exists() && boardsFile.canRead()) {