From: Cheng Zhao Date: Wed, 20 May 2015 05:31:28 +0000 (+0800) Subject: Remove the original-fs.js X-Git-Tag: v0.26.1~15^2~1 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=fa169ee7ff5f59fb57fcb7c75cf9b157a6a8e67c;p=electron.git Remove the original-fs.js It is acutally not needed. --- diff --git a/atom/common/api/lib/original-fs.coffee b/atom/common/api/lib/original-fs.coffee deleted file mode 100644 index e4e47f33..00000000 --- a/atom/common/api/lib/original-fs.coffee +++ /dev/null @@ -1,8 +0,0 @@ -vm = require 'vm' - -# Execute the 'fs.js' and pass the 'exports' to it. -source = '(function (exports, require, module, __filename, __dirname) { ' + - process.binding('natives').originalFs + - '\n});' -fn = vm.runInThisContext source, { filename: 'fs.js' } -fn exports, require, module diff --git a/filenames.gypi b/filenames.gypi index 1aa038c0..2a94b44d 100644 --- a/filenames.gypi +++ b/filenames.gypi @@ -35,7 +35,6 @@ 'atom/common/api/lib/crash-reporter.coffee', 'atom/common/api/lib/id-weak-map.coffee', 'atom/common/api/lib/native-image.coffee', - 'atom/common/api/lib/original-fs.coffee', 'atom/common/api/lib/shell.coffee', 'atom/common/lib/init.coffee', 'atom/renderer/lib/chrome-api.coffee',