From fa169ee7ff5f59fb57fcb7c75cf9b157a6a8e67c Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Wed, 20 May 2015 13:31:28 +0800 Subject: [PATCH] Remove the original-fs.js It is acutally not needed. --- atom/common/api/lib/original-fs.coffee | 8 -------- filenames.gypi | 1 - 2 files changed, 9 deletions(-) delete mode 100644 atom/common/api/lib/original-fs.coffee diff --git a/atom/common/api/lib/original-fs.coffee b/atom/common/api/lib/original-fs.coffee deleted file mode 100644 index e4e47f33120..00000000000 --- 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 1aa038c0c33..2a94b44d1cb 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',