summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-02-23 13:54:27 +0100
committerTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-02-23 13:54:27 +0100
commit95c2636cdab6d1040beeb3105659104a3d1842a4 (patch)
treead3577cc0a376a463655909e49e0d3b38dea8660
parent898c828c741cbc947b1ead35dfce6bf08c0302e5 (diff)
Remove unused type parameter from hint handlers
-rw-r--r--js/codeq/hint.js12
1 files 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 <http://www.gnu.org/licenses/>. */
},
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 <http://www.gnu.org/licenses/>. */
// 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 <http://www.gnu.org/licenses/>. */
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 <http://www.gnu.org/licenses/>. */
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 <http://www.gnu.org/licenses/>. */
*/
'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 <http://www.gnu.org/licenses/>. */
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);
}
}