Index: lib/filesystem/io.js |
=================================================================== |
--- a/lib/filesystem/io.js |
+++ b/lib/filesystem/io.js |
@@ -50,21 +50,6 @@ |
readFromFile: function(file, listener, callback, timeLineID) |
{ |
- // Hack to allow importing old data |
- if (typeof file == "string") |
- { |
- var Utils = require("utils").Utils; |
- Utils.runAsync(function() |
- { |
- var lines = file.split(/[\r\n]+/); |
- for (var i = 0; i < lines.length; i++) |
- listener.process(lines[i]); |
- listener.process(null); |
- callback(null); |
- }.bind(this)); |
- return; |
- } |
- |
this._getFileEntry(file, false, function(fs, fileEntry) |
{ |
fileEntry.file(function(file) |
@@ -180,19 +165,6 @@ |
statFile: function(file, callback) |
{ |
- // Hack to allow importing old data |
- if (typeof file == "string") |
- { |
- var Utils = require("utils").Utils; |
- Utils.runAsync(callback.bind(null, null, { |
- exists: true, |
- isDirectory: false, |
- isFile: true, |
- lastModified: 0 |
- })); |
- return; |
- } |
- |
// This needs to use Utils.runAsync(), otherwise FilterStorage might |
// initialize too early - see #337. |
require("utils").Utils.runAsync(function() { |