Skip to content

Commit ad5c0a4

Browse files
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 deb3d8e commit ad5c0a4

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

app/src/processing/app/Editor.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1771,7 +1771,6 @@ public BuildHandler(boolean verbose, boolean saveHex) {
17711771
public void run() {
17721772
try {
17731773
removeAllLineHighlights();
1774-
sketch.prepare();
17751774
sketch.build(verbose, saveHex);
17761775
statusNotice(tr("Done compiling."));
17771776
} catch (PreferencesMapException e) {

app/src/processing/app/Sketch.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -873,15 +873,6 @@ private void importLibrary(File jarPath) throws IOException {
873873
*/
874874
//protected String compile() throws RunnerException {
875875

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

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

0 commit comments

Comments
 (0)