From 0e296e767ab368e86fb79ebf9dbac91b33b39773 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Wed, 7 May 2014 14:45:56 -0400 Subject: [PATCH] Remove unused stuff. --- .../support/es6_node_runner.js | 22 ------------------- .../tilt/es6_module_transpiler_template.rb | 4 ---- 2 files changed, 26 deletions(-) delete mode 100644 lib/es6_module_transpiler/support/es6_node_runner.js diff --git a/lib/es6_module_transpiler/support/es6_node_runner.js b/lib/es6_module_transpiler/support/es6_node_runner.js deleted file mode 100644 index ba1ea3424e7..00000000000 --- a/lib/es6_module_transpiler/support/es6_node_runner.js +++ /dev/null @@ -1,22 +0,0 @@ -(function(program, execJS) { execJS(program) })(function(module, exports, console) { - #{source} -}, function(program) { - var output, print = function(string) { - process.stdout.write('' + string); - }; - try { - result = program(); - if (typeof result == 'undefined' && result !== null) { - print('["ok"]'); - } else { - try { - print(JSON.stringify(['ok', result])); - } catch (err) { - print('["err"]'); - } - } - } catch (err) { - print(JSON.stringify(['err', '' + err])); - } -}); - diff --git a/lib/es6_module_transpiler/tilt/es6_module_transpiler_template.rb b/lib/es6_module_transpiler/tilt/es6_module_transpiler_template.rb index 0c46b1a0caa..5c65562d360 100644 --- a/lib/es6_module_transpiler/tilt/es6_module_transpiler_template.rb +++ b/lib/es6_module_transpiler/tilt/es6_module_transpiler_template.rb @@ -69,10 +69,6 @@ module Tilt private - def transpiler_path - File.expand_path('../../support/es6-module-transpiler.js', __FILE__) - end - def generate_source(scope) "new module.exports.Compiler(#{::JSON.generate(data, quirks_mode: true)}, '#{module_name(scope.root_path, scope.logical_path)}', #{compiler_options}).#{compiler_method}()" end