1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-01-31 20:52:13 +01:00

Delete Sketch.prepare()

The only remaining thing that the method did was call `ensureExistence()`.
However, a call the `prepare()` was always followed by a call to
`build()`, which already calls `ensureExistence()`, so `prepare()`
didn't have any remaining value.
This commit is contained in:
Matthijs Kooijman 2015-12-16 17:22:23 +01:00 committed by Martino Facchin
parent f3d8ba219f
commit eba1098efb
2 changed files with 0 additions and 12 deletions

View File

@ -1762,7 +1762,6 @@ public class Editor extends JFrame implements RunnerListener {
public void run() { public void run() {
try { try {
removeAllLineHighlights(); removeAllLineHighlights();
sketch.prepare();
sketch.build(verbose, saveHex); sketch.build(verbose, saveHex);
statusNotice(tr("Done compiling.")); statusNotice(tr("Done compiling."));
} catch (PreferencesMapException e) { } catch (PreferencesMapException e) {

View File

@ -872,15 +872,6 @@ public class Sketch {
*/ */
//protected String compile() throws RunnerException { //protected String compile() throws RunnerException {
/**
* When running from the editor, take care of preparations before running
* the build.
*/
public void prepare() throws IOException {
// make sure the user didn't hide the sketch folder
ensureExistence();
}
/** /**
* Run the build inside the temporary build folder. * Run the build inside the temporary build folder.
* @return null if compilation failed, main class name if not * @return null if compilation failed, main class name if not
@ -948,8 +939,6 @@ public class Sketch {
private boolean exportApplet(String appletPath, boolean usingProgrammer) private boolean exportApplet(String appletPath, boolean usingProgrammer)
throws Exception { throws Exception {
prepare();
// build the sketch // build the sketch
editor.status.progressNotice(tr("Compiling sketch...")); editor.status.progressNotice(tr("Compiling sketch..."));
String foundName = build(appletPath, false, false); String foundName = build(appletPath, false, false);