Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 56952ba

Browse files
committed
Clean: remove dead code from outputfun
1 parent f7107d3 commit 56952ba

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

runestone/activecode/js/activecode.js

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,27 +1080,7 @@ Yet another is that there is an internal error. The internal error message is:
10801080
outputfun(text) {
10811081
// bnm python 3
10821082
if (this.outputLineCount > 1000) return;
1083-
var pyStr = function (x) {
1084-
if (x instanceof Array) {
1085-
return "[" + x.join(", ") + "]";
1086-
} else {
1087-
return x;
1088-
}
1089-
};
1090-
var x = text;
1091-
if (!this.python3) {
1092-
if (x.charAt(0) == "(") {
1093-
x = x.slice(1, -1);
1094-
x = "[" + x + "]";
1095-
try {
1096-
var xl = eval(x);
1097-
xl = xl.map(pyStr);
1098-
x = xl.join(" ");
1099-
} catch (err) {}
1100-
}
1101-
}
11021083
$(this.output).css("visibility", "visible");
1103-
text = x;
11041084
text = text
11051085
.replace(/</g, "&lt;")
11061086
.replace(/>/g, "&gt;")

0 commit comments

Comments
 (0)