mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 09:31:41 -05:00
Remove now disused hintorder
setting
This commit is contained in:
parent
e06b98d220
commit
8fa42bc442
3 changed files with 0 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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="") {
|
||||
|
|
|
@ -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('')
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue