mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-17 06:52:18 +01:00
Removed some java compile time warnings
This commit is contained in:
parent
cdf2b8d9fe
commit
373113454d
@ -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);
|
||||
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
@ -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()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user