1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-02-18 12:54:25 +01:00

Remove applet.html handling

This was a remnant of Processing, this file has no special meaning for
an Arduino sketch, so this code can just be removed.
This commit is contained in:
Matthijs Kooijman 2015-12-11 17:45:38 +01:00 committed by Martino Facchin
parent 1d21378a5f
commit 76be212f23

View File

@ -648,14 +648,6 @@ public class Sketch {
Base.copyDir(data.getCodeFolder(), newCodeFolder);
}
// copy custom applet.html file if one exists
// http://dev.processing.org/bugs/show_bug.cgi?id=485
File customHtml = new File(data.getFolder(), "applet.html");
if (customHtml.exists()) {
File newHtml = new File(newFolder, "applet.html");
Base.copyFile(customHtml, newHtml);
}
// save the main tab with its new name
File newFile = new File(newFolder, newName + ".ino");
data.getCode(0).saveAs(newFile);