Index: third_party/pkg/angular/karma-parser-generator/preprocessor.js |
diff --git a/third_party/pkg/angular/karma-parser-generator/preprocessor.js b/third_party/pkg/angular/karma-parser-generator/preprocessor.js |
deleted file mode 100644 |
index 4951aa932a77a7b066a7b4f54480733591af74df..0000000000000000000000000000000000000000 |
--- a/third_party/pkg/angular/karma-parser-generator/preprocessor.js |
+++ /dev/null |
@@ -1,24 +0,0 @@ |
-var fs = require('fs'); |
-var sys = require('sys'); |
-var exec = require('child_process').exec; |
- |
-var generateParser = function(logger) { |
- var log = logger.create('generate-parser'); |
- return function(content, file, done) { |
- log.info('Generating parser for parser test: %s', file.originalPath); |
- |
- fs.readFile(file.originalPath, function(err, data) { |
- if (err) throw err; |
- |
- exec('dart --checked bin/parser_generator_for_spec.dart', function(err, stdout, stderr) { |
- if (err) throw err; |
- data = data.toString(); |
- data = data.replace(/^.* \/\/ REMOVE$/m, ''); |
- data = data.replace(/_template;/, '_generated;'); |
- done(data + '\n\n' + stdout); |
- }); |
- }); |
- } |
-} |
- |
-module.exports = generateParser; |