Remove obsolete external function setCompileJSON

pull/1/head
Alex Beregszaszi 9 years ago
parent 5811ac8f16
commit 671a90c06d
  1. 9
      src/app/compiler.js

@ -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;

Loading…
Cancel
Save