summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@araneo.org>2015-10-05 15:48:58 +0200
committerTimotej Lazar <timotej.lazar@araneo.org>2015-10-05 15:48:58 +0200
commit1f2158699c43cab53152017f2dd73968bc390311 (patch)
tree6015cf0dea82d3db3ba56386b20fabfb7b42f622 /js
parent4a5e0f9651c44337c20b95908bfcebcb9639e176 (diff)
Remove some stale comments
Diffstat (limited to 'js')
-rw-r--r--js/codeq/prolog.js11
-rw-r--r--js/codeq/python.js16
-rw-r--r--js/codeq/robot.js3
3 files changed, 3 insertions, 27 deletions
diff --git a/js/codeq/prolog.js b/js/codeq/prolog.js
index ef7a089..2aeede4 100644
--- a/js/codeq/prolog.js
+++ b/js/codeq/prolog.js
@@ -202,15 +202,8 @@
codeq.tr.registerDictionary('prolog', codeq.tr.emptyDictionary); // to make the translator happy, when this screen is not active
});
- /**
- * Creates a new handler for the given Prolog assignment definition.
- *
- * @param {PrologTaskDef} info
- * @returns {{destroy: Function, processServerHints: Function}}
- */
createPrologHandler = function (problemDef, commonDef, currentSolution) {
- var //problem = info.problem,
- jqDescriptionContent = jqDescription.find('.description'),
+ var jqDescriptionContent = jqDescription.find('.description'),
jqEditor = jqCode.find('.code_editor'),
jqTerminal = jqConsole.find('.console'),
jqHints = jqInfo.find('.hints'),
@@ -228,8 +221,6 @@
codeq.tr.registerDictionary('prolog', problemDef.translations);
codeq.tr.translateDom(jqScreen);
-// $('#screen_prolog .title').text(problem.slug);
-// jqDescriptionContent.html(problem.description);
jqBtnPlan.prop('disabled', !hinter.hasNextPlan());
editor.on('change', function (instance, changeObj) {
diff --git a/js/codeq/python.js b/js/codeq/python.js
index e67ec09..4d6ace3 100644
--- a/js/codeq/python.js
+++ b/js/codeq/python.js
@@ -160,15 +160,8 @@
codeq.tr.registerDictionary('python', codeq.tr.emptyDictionary); // to make the translator happy, when this screen is not active
});
- /**
- * Creates a new handler for the given Prolog assignment definition.
- *
- * @param {PrologTaskDef} info
- * @returns {{destroy: Function, processServerHints: Function}}
- */
var createPythonHandler = function (problemDef, commonDef, currentSolution) {
- var //problem = info.problem,
- jqDescriptionContent = jqDescription.find('.description'),
+ var jqDescriptionContent = jqDescription.find('.description'),
jqEditor = jqCode.find('.code_editor'),
jqTerminal = jqConsole.find('.console'),
jqHints = jqInfo.find('.hints'),
@@ -186,8 +179,6 @@
codeq.tr.registerDictionary('python', problemDef.translations);
codeq.tr.translateDom(jqScreen);
-// $('#screen_python .title').text(problem.slug);
-// jqDescriptionContent.html(problem.description);
jqBtnPlan.prop('disabled', !hinter.hasNextPlan());
editor.on('change', function (instance, changeObj) {
@@ -266,11 +257,6 @@
.done();
});
- // TODO first line of interpreter output is buffered without this, why?
-// codeq.comms.sendPythonPush({
-// 'text': ''
-// });
-
codeq.comms.loadProblem(problemDef.id).done();
return {
diff --git a/js/codeq/robot.js b/js/codeq/robot.js
index 442cfb1..0a62a2a 100644
--- a/js/codeq/robot.js
+++ b/js/codeq/robot.js
@@ -135,8 +135,7 @@
});
var createRobotHandler = function (problemDef, commonDef, currentSolution) {
- var //problem = info.problem,
- jqDescriptionContent = jqDescription.find('.description'),
+ var jqDescriptionContent = jqDescription.find('.description'),
jqEditor = jqCode.find('.code_editor'),
jqHints = jqInfo.find('.hints'),
editor = codeq.makeEditor(jqEditor[0], {