mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-19 08:52:15 +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:
parent
f3d8ba219f
commit
eba1098efb
@ -1762,7 +1762,6 @@ public class Editor extends JFrame implements RunnerListener {
|
||||
public void run() {
|
||||
try {
|
||||
removeAllLineHighlights();
|
||||
sketch.prepare();
|
||||
sketch.build(verbose, saveHex);
|
||||
statusNotice(tr("Done compiling."));
|
||||
} catch (PreferencesMapException e) {
|
||||
|
@ -872,15 +872,6 @@ public class Sketch {
|
||||
*/
|
||||
//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.
|
||||
* @return null if compilation failed, main class name if not
|
||||
@ -948,8 +939,6 @@ public class Sketch {
|
||||
private boolean exportApplet(String appletPath, boolean usingProgrammer)
|
||||
throws Exception {
|
||||
|
||||
prepare();
|
||||
|
||||
// build the sketch
|
||||
editor.status.progressNotice(tr("Compiling sketch..."));
|
||||
String foundName = build(appletPath, false, false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user