From 94a8c44d39c9690bb8aae401026643fa73fcbb8b Mon Sep 17 00:00:00 2001 From: probablycorey Date: Wed, 15 May 2013 15:08:40 -0700 Subject: [PATCH] Remove AtomWindow params that are not in use yet I pulled these out to keep the code simpler until we something running --- src/main.coffee | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/main.coffee b/src/main.coffee index 47c651681..75204f7e6 100644 --- a/src/main.coffee +++ b/src/main.coffee @@ -11,11 +11,11 @@ app.on 'window-all-closed', -> class AtomWindow @windows = [] - constructor: (options) -> - {@bootstrapScript, @isDev, @isSpec, @exitWhenDone, @resourcePath} = options + bootstrapScript: null + resourcePath: null + constructor: ({@bootstrapScript, @resourcePath}) -> @resourcePath ?= path.dirname(__dirname) - @window = @open() open: -> @@ -40,10 +40,6 @@ class AtomWindow 'node_modules', ] - if @isSpec - resourcePaths = ['benchmark', 'spec'].contat resourcePaths - resourcePaths.push 'spec/fixtures/packages' - homeDir = process.env[if process.platform is 'win32' then 'USERPROFILE' else 'HOME'] resourcePaths.push path.join(homeDir, '.atom', 'packages') @@ -73,7 +69,4 @@ delegate.browserMainParts.preMainMessageLoopRun = -> args = require('optimist')(modifiedArgv).argv new AtomWindow bootstrapScript: 'window-bootstrap', - isDev: false, - isSpec: false, - exitWhenDone: false resourcePath: args['resource-path']