Remove now disused hintorder setting

This commit is contained in:
Oliver Blanthorn 2017-12-03 13:55:56 +00:00
parent e06b98d220
commit 8fa42bc442
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3
3 changed files with 0 additions and 4 deletions

View file

@ -84,7 +84,6 @@ const DEFAULTS = o({
"storageloc": "sync",
"homepages": [],
"hintchars": "hjklasdfgyuiopqwertnmzxcvb",
"hintorder": "normal",
"ttsvoice": "default", // chosen from the listvoices list, or "default"
"ttsvolume": 1, // 0 to 1

View file

@ -1118,7 +1118,6 @@ import * as hinting from './hinting_background'
Related settings:
"hintchars": "hjklasdfgyuiopqwertnmzxcvb"
"hintorder": "normal" or "reverse"
*/
//#background
export function hint(option?: string, selectors="") {

View file

@ -82,7 +82,6 @@ function* hintnames(n: number, hintchars = config.get("hintchars")): IterableIte
}
while (true) {
yield* map(source, e=>{
if (config.get("hintorder") == "reverse") e = e.reverse()
return e.join('')
})
taglen++
@ -100,7 +99,6 @@ function* hintnames_uniform(n: number, hintchars = config.get("hintchars")): Ite
// And return first n permutations
yield* map(islice(permutationsWithReplacement(hintchars, taglen), n),
perm => {
if (config.get("hintorder") == "reverse") perm = perm.reverse()
return perm.join('')
})
}