mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-20 14:54:31 +01:00
Rename SketchFile.deleteFile()
to delete()
The extra "File" in the name was a bit redundant, and this is more consistent with `Sketch.delete()`.
This commit is contained in:
parent
ccec28ea45
commit
aae0bc4c47
@ -253,7 +253,7 @@ public class SketchController {
|
|||||||
editor.base.handleClose(editor);
|
editor.base.handleClose(editor);
|
||||||
} else {
|
} else {
|
||||||
// delete the file
|
// delete the file
|
||||||
if (!current.deleteFile(BaseNoGui.getBuildFolder(sketch).toPath())) {
|
if (!current.delete(BaseNoGui.getBuildFolder(sketch).toPath())) {
|
||||||
Base.showMessage(tr("Couldn't do it"),
|
Base.showMessage(tr("Couldn't do it"),
|
||||||
I18n.format(tr("Could not delete \"{0}\"."), current.getFileName()));
|
I18n.format(tr("Could not delete \"{0}\"."), current.getFileName()));
|
||||||
return;
|
return;
|
||||||
|
@ -128,7 +128,7 @@ public class SketchFile {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
protected boolean deleteFile(Path tempBuildFolder) throws IOException {
|
protected boolean delete(Path tempBuildFolder) throws IOException {
|
||||||
if (!file.delete()) {
|
if (!file.delete()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user