Skip to content

Commit

Permalink
stripping out more of the script-related evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
Danny Yoo committed Jul 11, 2012
1 parent 53f5ff7 commit 03eacd1
Showing 1 changed file with 2 additions and 23 deletions.
25 changes: 2 additions & 23 deletions src/compiler/mzscheme-vm/servlet-htdocs/evaluator.js
Expand Up @@ -3,8 +3,8 @@
//
// Evaluator(options)
// options: { write: dom -> void,
// compilationServletUrl: string,
// scriptCompilationServletUrl: string}
// compilationServletUrl: string }

//
// Constructs a new evaluator.
//
Expand Down Expand Up @@ -60,12 +60,6 @@ var Evaluator = (function() {
this.compilationServletUrl = DEFAULT_COMPILATION_SERVLET_URL;
}

if (options.scriptCompilationServletUrl) {
this.scriptCompilationServletUrl = options.scriptCompilationServletUrl;
} else {
this.scriptCompilationServletUrl = DEFAULT_COMPILATION_SERVLET_URL;
}

if (options.transformDom) {
this.transformDom = options.transformDom;
} else {
Expand Down Expand Up @@ -186,16 +180,6 @@ var Evaluator = (function() {




var encodeScriptParameters = function(programName, code) {
return encodeUrlParameters({ 'name': programName,
'program': code,
'compiler-version' : '1',
'callback': 'Evaluator.compilation_success_callback__',
'on-error': 'Evaluator.compilation_failure_callback__'});
};


// executeProgram: string string (-> void) (exn -> void) -> void
Evaluator.prototype.executeProgram = function(programName, code,
onDone,
Expand Down Expand Up @@ -245,11 +229,6 @@ var Evaluator = (function() {
};







Evaluator.prototype.executeCompiledProgram = function(compiledBytecode,
onDoneSuccess, onDoneFail) {
this.aState.clearForEval();
Expand Down

0 comments on commit 03eacd1

Please sign in to comment.