Index: third_party/pkg/angular/playback_middleware/lib/playback.js |
diff --git a/third_party/pkg/angular/playback_middleware/lib/playback.js b/third_party/pkg/angular/playback_middleware/lib/playback.js |
deleted file mode 100644 |
index b47b8a8514173be81dc6e0340ed79dbeccd08814..0000000000000000000000000000000000000000 |
--- a/third_party/pkg/angular/playback_middleware/lib/playback.js |
+++ /dev/null |
@@ -1,42 +0,0 @@ |
- |
-function playback(opts) { |
- var records = []; |
- var seen = {}; |
- |
- function record(key, data) { |
- if (seen[key]) return; |
- records.push({key: key, data: data}); |
- seen[key] = true; |
- } |
- |
- function playback() { |
- var lines = [ |
- 'library angular.core.service.playback_data;', |
- '', |
- 'import "dart:convert";', |
- '', |
- '// Auto-generated by record-playback', |
- '', |
- 'Map<String, String> playbackData = {' |
- ]; |
- |
- records.forEach(function(r) { |
- var keyString = JSON.stringify(r.key).replace(/\$/g, '\\$'); |
- var valueString = JSON.stringify(r.data).replace(/\$/g, '\\$'); |
- lines.push(' ' + keyString + ': JSON.decode(' + valueString + '),'); |
- }); |
- |
- lines.push('};'); |
- |
- return lines.join('\n'); |
- } |
- |
- return { |
- record: record, |
- playback: playback |
- } |
-} |
- |
-module.exports = { |
- playback: playback |
-}; |