diff options
author | Cristian Maglie <c.maglie@arduino.cc> | 2016-11-05 12:13:56 +0300 |
---|---|---|
committer | Cristian Maglie <c.maglie@arduino.cc> | 2016-11-07 16:47:33 +0300 |
commit | 5b4af28f4796fe8d4dcc5ccc839747ca5da120bc (patch) | |
tree | ae9e6d4b22a2819c22705fdb89e44b6f9d7867b0 | |
parent | af70053218e3ae9c1e1051368282d577ffd61d18 (diff) |
Removed dead code
-rw-r--r-- | app/src/processing/app/Base.java | 38 | ||||
-rw-r--r-- | arduino-core/src/processing/app/BaseNoGui.java | 9 |
2 files changed, 0 insertions, 47 deletions
diff --git a/app/src/processing/app/Base.java b/app/src/processing/app/Base.java index 875470220..9e61c5d0d 100644 --- a/app/src/processing/app/Base.java +++ b/app/src/processing/app/Base.java @@ -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")); diff --git a/arduino-core/src/processing/app/BaseNoGui.java b/arduino-core/src/processing/app/BaseNoGui.java index 601328b50..38130bd0c 100644 --- a/arduino-core/src/processing/app/BaseNoGui.java +++ b/arduino-core/src/processing/app/BaseNoGui.java @@ -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) |