Skip to content

Commit aae0bc4

Browse files
matthijskooijmanfacchinm
authored andcommitted
Rename SketchFile.deleteFile() to delete()
The extra "File" in the name was a bit redundant, and this is more consistent with `Sketch.delete()`.
1 parent ccec28e commit aae0bc4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/src/processing/app/SketchController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ public void handleDeleteCode() throws IOException {
253253
editor.base.handleClose(editor);
254254
} else {
255255
// delete the file
256-
if (!current.deleteFile(BaseNoGui.getBuildFolder(sketch).toPath())) {
256+
if (!current.delete(BaseNoGui.getBuildFolder(sketch).toPath())) {
257257
Base.showMessage(tr("Couldn't do it"),
258258
I18n.format(tr("Could not delete \"{0}\"."), current.getFileName()));
259259
return;

arduino-core/src/processing/app/SketchFile.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ protected boolean fileReadOnly() {
128128
}
129129

130130

131-
protected boolean deleteFile(Path tempBuildFolder) throws IOException {
131+
protected boolean delete(Path tempBuildFolder) throws IOException {
132132
if (!file.delete()) {
133133
return false;
134134
}

0 commit comments

Comments
 (0)