From 84d58c05d121f3c9aa9755f7d70b48e8d5a6a4fd Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Sat, 22 Nov 2014 21:37:01 +0100 Subject: [PATCH] Removed not used getHintNumber() function. --- src/hints.js | 15 --------------- 1 file changed, 15 deletions(-) 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, -- 2.20.1