From: Daniel Carl Date: Sat, 22 Nov 2014 20:37:01 +0000 (+0100) Subject: Removed not used getHintNumber() function. X-Git-Url: https://git.owens.tech/assets/lich_lifts_title_slice.png/assets/lich_lifts_title_slice.png/git?a=commitdiff_plain;h=84d58c05d121f3c9aa9755f7d70b48e8d5a6a4fd;p=vimb.git Removed not used getHintNumber() function. --- diff --git a/src/hints.js b/src/hints.js index bef1193..c1c04e6 100644 --- a/src/hints.js +++ b/src/hints.js @@ -310,21 +310,6 @@ Object.freeze((function(){ return res.reverse().join(""); } - /* Return the hint index to a given hint string. This is the reverse of */ - /* getHintString() */ - function getHintNumber(str) { - var base = config.hintKeys.length, - res = 0, - ch, i; - - for (i = 0; i < base; i++) { - ch = str.charAt(i); - res = res * base + config.hintKeys.indexOf(ch); - } - - return res; - } - function getOffsets(doc) { var body = doc.body || doc.documentElement, style = body.style,