diff --git a/native/v8_extensions/native.js b/native/v8_extensions/native.js index b19e92a45..fbd494bd5 100644 --- a/native/v8_extensions/native.js +++ b/native/v8_extensions/native.js @@ -25,9 +25,6 @@ var $native = {}; native function remove(path); $native.remove = remove; - native function asyncList(path, recursive, callback); - $native.asyncList = asyncList; - native function open(path); $native.open = open; diff --git a/native/v8_extensions/native.mm b/native/v8_extensions/native.mm index af647f78f..90e64e353 100644 --- a/native/v8_extensions/native.mm +++ b/native/v8_extensions/native.mm @@ -159,9 +159,6 @@ bool Native::Execute(const CefString& name, return true; } - else if (name == "asyncList") { - return false; - } else if (name == "writeToPasteboard") { NSString *text = stringFromCefV8Value(arguments[0]); diff --git a/spec/stdlib/fs-spec.coffee b/spec/stdlib/fs-spec.coffee index f5abc6c38..30bd57e25 100644 --- a/spec/stdlib/fs-spec.coffee +++ b/spec/stdlib/fs-spec.coffee @@ -96,20 +96,3 @@ describe "fs", -> describe ".md5ForPath(path)", -> it "returns the MD5 hash of the file at the given path", -> expect(fs.md5ForPath(require.resolve('fixtures/sample.js'))).toBe 'dd38087d0d7e3e4802a6d3f9b9745f2b' - - describe ".async", -> - directoryPath = null - beforeEach -> - directoryPath = require.resolve 'fixtures/dir' - - describe ".listTree(directoryPath)", -> - it "returns a promise that resolves to the recursive contents of that directory", -> - waitsForPromise -> - fs.async.listTree(directoryPath).done (result) -> - expect(result).toEqual fs.listTree(directoryPath) - - describe ".list(directoryPath)", -> - it "returns a promise that resolves to the contents of that directory", -> - waitsForPromise -> - fs.async.list(directoryPath).done (result) -> - expect(result).toEqual fs.list(directoryPath) diff --git a/src/stdlib/fs.coffee b/src/stdlib/fs.coffee index bd0a86293..839d6f0a1 100644 --- a/src/stdlib/fs.coffee +++ b/src/stdlib/fs.coffee @@ -116,16 +116,3 @@ module.exports = md5ForPath: (path) -> $native.md5ForPath(path) - - async: - list: (path) -> - deferred = $.Deferred() - $native.asyncList path, false, (subpaths) -> - deferred.resolve subpaths - deferred - - listTree: (path) -> - deferred = $.Deferred() - $native.asyncList path, true, (subpaths) -> - deferred.resolve subpaths - deferred