From a1f3a6520f3af5347a8a9785b487a8d4fce570b5 Mon Sep 17 00:00:00 2001 From: Federico Bond Date: Sun, 14 Sep 2014 01:59:45 -0300 Subject: [PATCH] Remove unused Base.builtOnce instance variable --- app/src/processing/app/Base.java | 39 -------------------------------- 1 file changed, 39 deletions(-) diff --git a/app/src/processing/app/Base.java b/app/src/processing/app/Base.java index 007f172a5..9a4e9144a 100644 --- a/app/src/processing/app/Base.java +++ b/app/src/processing/app/Base.java @@ -101,10 +101,6 @@ public class Base { ContributionManagerDialog exampleManagerFrame; ContributionManagerDialog updateManagerFrame; - // set to true after the first time the menu is built. - // so that the errors while building don't show up again. - boolean builtOnce; - // Location for untitled items static File untitledFolder; @@ -1234,25 +1230,6 @@ public class Base { File entry = checkSketchFolder(subfolder, name); if (entry != null) { -// File entry = new File(subfolder, list[i] + getExtension()); -// // if a .pde file of the same prefix as the folder exists.. -// if (entry.exists()) { -// //String sanityCheck = sanitizedName(list[i]); -// //if (!sanityCheck.equals(list[i])) { -// if (!Sketch.isSanitaryName(list[i])) { -// if (!builtOnce) { -// String complaining = -// "The sketch \"" + list[i] + "\" cannot be used.\n" + -// "Sketch names must contain only basic letters and numbers\n" + -// "(ASCII-only with no spaces, " + -// "and it cannot start with a number).\n" + -// "To get rid of this message, remove the sketch from\n" + -// entry.getAbsolutePath(); -// Base.showMessage("Ignoring sketch with bad name", complaining); -// } -// continue; -// } - JMenuItem item = new JMenuItem(name); item.addActionListener(listener); item.setActionCommand(entry.getAbsolutePath()); @@ -1365,22 +1342,6 @@ public class Base { if (entry.exists()) { return entry; } - // for the new releases, don't bother lecturing.. just ignore the sketch - /* - if (!Sketch.isSanitaryName(list[i])) { - if (!builtOnce) { - String complaining = - "The sketch \"" + list[i] + "\" cannot be used.\n" + - "Sketch names must contain only basic letters and numbers\n" + - "(ASCII-only with no spaces, " + - "and it cannot start with a number).\n" + - "To get rid of this message, remove the sketch from\n" + - entry.getAbsolutePath(); - Base.showMessage("Ignoring sketch with bad name", complaining); - } - continue; - } - */ } return null; }