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:
Matthijs Kooijman 2015-12-29 17:02:49 +01:00 committed by Martino Facchin
parent ccec28ea45
commit aae0bc4c47
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;
}