From 95c2636cdab6d1040beeb3105659104a3d1842a4 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Tue, 23 Feb 2016 13:54:27 +0100 Subject: Remove unused type parameter from hint handlers --- js/codeq/hint.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/js/codeq/hint.js b/js/codeq/hint.js index 5b2f66e..1d0ff09 100644 --- a/js/codeq/hint.js +++ b/js/codeq/hint.js @@ -180,7 +180,7 @@ along with this program. If not, see . */ }, typeHandlers = { - 'static': function (type, template, serverHint, hintId) { + 'static': function (template, serverHint, hintId) { var content = prepareStaticHintContent(template, serverHint.indices, hintId), args = serverHint ? serverHint.args : null, hintIndex = 0, @@ -254,7 +254,7 @@ along with this program. If not, see . */ // no hint cleaner here, a static hint remains on the screen }, - 'popup': function (type, template, serverHint) { + 'popup': function (template, serverHint) { codeq.log.debug('Processing popup hint'); var args = serverHint.args, style = serverHint.style || '', @@ -271,7 +271,7 @@ along with this program. If not, see . */ translations[lang] = codeq.template.process(content, templatePath, args); } else { - translations[lang] = 'No translation in ' + lang + ' available for ' + type + ' hint ' + serverHint.id; + translations[lang] = 'No translation in ' + lang + ' available for popup hint ' + serverHint.id; codeq.log.error(translations[lang]); } } @@ -297,7 +297,7 @@ along with this program. If not, see . */ return instFunc; }, - 'dropdown': function (type, template, serverHint) { + 'dropdown': function (template, serverHint) { codeq.log.debug('Processing dropdown hint'); var completion = null, // the completion object, created in showHint() close = function () { @@ -349,7 +349,7 @@ along with this program. If not, see . */ */ 'planNext': function () { if (planIdx < planDef.length) { - typeHandlers.static('static', planDef[planIdx], {}, 'plan'); + typeHandlers['static'](planDef[planIdx], {}, 'plan'); planIdx++; } return planIdx < planDef.length; @@ -397,7 +397,7 @@ along with this program. If not, see . */ fn = typeHandlers[hintType]; if (!fn) codeq.log.error('Unsupported hint type: ' + hintType); else { - ret = fn(hintType, hintContent, serverHint, hintId); + ret = fn(hintContent, serverHint, hintId); if (typeof ret === 'function') finalizers.push(ret); } } -- cgit v1.2.1