Commit 671a90c0 authored by Alex Beregszaszi's avatar Alex Beregszaszi

Remove obsolete external function setCompileJSON

parent 5811ac8f
......@@ -63,11 +63,6 @@ function Compiler (editor, handleGithubCall, outputField, hidingRHP, updateFiles
editor.setAnnotations(sourceAnnotations);
};
function setCompileJSON () {
compileJSON = function(source, optimize) { compilationFinished('{}'); };
};
this.setCompileJSON = setCompileJSON;
function onCompilerLoaded (setVersionText) {
if (worker === null) {
var compile;
......@@ -139,7 +134,9 @@ function Compiler (editor, handleGithubCall, outputField, hidingRHP, updateFiles
this.loadVersion = function (version, setVersionText) {
Module = null;
setCompileJSON();
// Set a safe fallback until the new one is loaded
compileJSON = function(source, optimize) { compilationFinished('{}'); };
var newScript = document.createElement('script');
newScript.type = 'text/javascript';
newScript.src = url;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment