mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-17 11:54:33 +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);
|
||||
} else {
|
||||
// delete the file
|
||||
if (!current.deleteFile(BaseNoGui.getBuildFolder(sketch).toPath())) {
|
||||
if (!current.delete(BaseNoGui.getBuildFolder(sketch).toPath())) {
|
||||
Base.showMessage(tr("Couldn't do it"),
|
||||
I18n.format(tr("Could not delete \"{0}\"."), current.getFileName()));
|
||||
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()) {
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user