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:
parent
cdf2b8d9fe
commit
373113454d
@ -1082,13 +1082,6 @@ public class Base {
|
|||||||
PreferencesMap prefs = targetPlatform.getPreferences();
|
PreferencesMap prefs = targetPlatform.getPreferences();
|
||||||
String targetname = prefs.get("name");
|
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));
|
JMenuItem platformItem = new JMenuItem(_(targetname));
|
||||||
platformItem.setEnabled(false);
|
platformItem.setEnabled(false);
|
||||||
importMenu.add(platformItem);
|
importMenu.add(platformItem);
|
||||||
|
@ -14,7 +14,6 @@
|
|||||||
package processing.app;
|
package processing.app;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.Locale.*;
|
|
||||||
import java.text.MessageFormat;
|
import java.text.MessageFormat;
|
||||||
|
|
||||||
public class I18n {
|
public class I18n {
|
||||||
@ -58,4 +57,18 @@ public class I18n {
|
|||||||
public static String format(String fmt, Object ... args) {
|
public static String format(String fmt, Object ... args) {
|
||||||
return MessageFormat.format(fmt, 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>();
|
programmers = new HashMap<String, PreferencesMap>();
|
||||||
preferences = new 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 {
|
try {
|
||||||
File boardsFile = new File(_folder, "boards.txt");
|
File boardsFile = new File(_folder, "boards.txt");
|
||||||
if (boardsFile.exists() && boardsFile.canRead()) {
|
if (boardsFile.exists() && boardsFile.canRead()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user