Skip to content

Commit 510aa2a

Browse files
committed
remove old word list implementation
1 parent cb7ef83 commit 510aa2a

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

app/src/processing/app/SketchName.java

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -187,28 +187,6 @@ File wordsFolder(File parentDir) {
187187
}
188188

189189

190-
/*
191-
static File wordsFolder(File parentDir, String setName) {
192-
WordList wl = getWordLists().get(setName);
193-
File outgoing = null;
194-
// Still may be other possibilities after this, but if we hit
195-
// this many attempts, we've pretty much exhausted the list.
196-
final int maxAttempts = wl.getComboCount();
197-
int attempts = 0;
198-
do {
199-
// Clean up the name in case a user-supplied word list breaks the rules
200-
String name = Sketch.sanitizeName(wl.getPair());
201-
outgoing = new File(parentDir, name);
202-
attempts++;
203-
if (attempts == maxAttempts) {
204-
return null; // avoid infinite loop
205-
}
206-
} while (outgoing.exists());
207-
return outgoing;
208-
}
209-
*/
210-
211-
212190
static private void load(File namingFile) {
213191
JSONArray array = PApplet.loadJSONArray(namingFile);
214192
for (int i = 0; i < array.size(); i++) {

0 commit comments

Comments
 (0)