Skip to content

Commit eba1098

Browse files
matthijskooijmanfacchinm
authored andcommitted
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.
1 parent f3d8ba2 commit eba1098

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

app/src/processing/app/Editor.java

-1
Original file line numberDiff line numberDiff line change
@@ -1762,7 +1762,6 @@ public BuildHandler(boolean verbose, boolean saveHex) {
17621762
public void run() {
17631763
try {
17641764
removeAllLineHighlights();
1765-
sketch.prepare();
17661765
sketch.build(verbose, saveHex);
17671766
statusNotice(tr("Done compiling."));
17681767
} catch (PreferencesMapException e) {

app/src/processing/app/Sketch.java

-11
Original file line numberDiff line numberDiff line change
@@ -872,15 +872,6 @@ public void importLibrary(UserLibrary lib) throws IOException {
872872
*/
873873
//protected String compile() throws RunnerException {
874874

875-
/**
876-
* When running from the editor, take care of preparations before running
877-
* the build.
878-
*/
879-
public void prepare() throws IOException {
880-
// make sure the user didn't hide the sketch folder
881-
ensureExistence();
882-
}
883-
884875
/**
885876
* Run the build inside the temporary build folder.
886877
* @return null if compilation failed, main class name if not
@@ -948,8 +939,6 @@ protected boolean exportApplet(boolean usingProgrammer) throws Exception {
948939
private boolean exportApplet(String appletPath, boolean usingProgrammer)
949940
throws Exception {
950941

951-
prepare();
952-
953942
// build the sketch
954943
editor.status.progressNotice(tr("Compiling sketch..."));
955944
String foundName = build(appletPath, false, false);

0 commit comments

Comments
 (0)