mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-20 14:54:31 +01:00
Removed dead code
This commit is contained in:
parent
af70053218
commit
5b4af28f47
@ -156,50 +156,12 @@ public class Base {
|
||||
|
||||
BaseNoGui.initVersion();
|
||||
|
||||
// if (System.getProperty("mrj.version") != null) {
|
||||
// //String jv = System.getProperty("java.version");
|
||||
// String ov = System.getProperty("os.version");
|
||||
// if (ov.startsWith("10.5")) {
|
||||
// System.setProperty("apple.laf.useScreenMenuBar", "true");
|
||||
// }
|
||||
// }
|
||||
|
||||
/*
|
||||
commandLine = false;
|
||||
if (args.length >= 2) {
|
||||
if (args[0].startsWith("--")) {
|
||||
commandLine = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (PApplet.javaVersion < 1.5f) {
|
||||
//System.err.println("no way man");
|
||||
Base.showError("Need to install Java 1.5",
|
||||
"This version of Processing requires \n" +
|
||||
"Java 1.5 or later to run properly.\n" +
|
||||
"Please visit java.com to upgrade.", null);
|
||||
}
|
||||
*/
|
||||
|
||||
// // Set the look and feel before opening the window
|
||||
// try {
|
||||
// platform.setLookAndFeel();
|
||||
// } catch (Exception e) {
|
||||
// System.err.println("Non-fatal error while setting the Look & Feel.");
|
||||
// System.err.println("The error message follows, however Processing should run fine.");
|
||||
// System.err.println(e.getMessage());
|
||||
// //e.printStackTrace();
|
||||
// }
|
||||
|
||||
// Use native popups so they don't look so crappy on osx
|
||||
JPopupMenu.setDefaultLightWeightPopupEnabled(false);
|
||||
|
||||
// Don't put anything above this line that might make GUI,
|
||||
// because the platform has to be inited properly first.
|
||||
|
||||
// Make sure a full JDK is installed
|
||||
//initRequirements();
|
||||
|
||||
// setup the theme coloring fun
|
||||
Theme.init();
|
||||
System.setProperty("swing.aatext", PreferencesData.get("editor.antialias", "true"));
|
||||
|
@ -130,15 +130,6 @@ public class BaseNoGui {
|
||||
return count;
|
||||
}
|
||||
|
||||
static public String getAvrBasePath() {
|
||||
String path = getHardwarePath() + File.separator + "tools" +
|
||||
File.separator + "avr" + File.separator + "bin" + File.separator;
|
||||
if (OSUtils.isLinux() && !(new File(path)).exists()) {
|
||||
return ""; // use distribution provided avr tools if bundled tools missing
|
||||
}
|
||||
return path;
|
||||
}
|
||||
|
||||
static public PreferencesMap getBoardPreferences() {
|
||||
TargetBoard board = getTargetBoard();
|
||||
if (board == null)
|
||||
|
Loading…
x
Reference in New Issue
Block a user