Skip to content

Commit

Permalink
remove old word list implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
benfry committed Nov 24, 2022
1 parent cb7ef83 commit 510aa2a
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions app/src/processing/app/SketchName.java
Original file line number Diff line number Diff line change
Expand Up @@ -187,28 +187,6 @@ File wordsFolder(File parentDir) {
}


/*
static File wordsFolder(File parentDir, String setName) {
WordList wl = getWordLists().get(setName);
File outgoing = null;
// Still may be other possibilities after this, but if we hit
// this many attempts, we've pretty much exhausted the list.
final int maxAttempts = wl.getComboCount();
int attempts = 0;
do {
// Clean up the name in case a user-supplied word list breaks the rules
String name = Sketch.sanitizeName(wl.getPair());
outgoing = new File(parentDir, name);
attempts++;
if (attempts == maxAttempts) {
return null; // avoid infinite loop
}
} while (outgoing.exists());
return outgoing;
}
*/


static private void load(File namingFile) {
JSONArray array = PApplet.loadJSONArray(namingFile);
for (int i = 0; i < array.size(); i++) {
Expand Down

0 comments on commit 510aa2a

Please sign in to comment.