Remove AtomWindow params that are not in use yet

I pulled these out to keep the code simpler until we something running
This commit is contained in:
probablycorey
2013-05-15 15:08:40 -07:00
parent 16f8402d36
commit 94a8c44d39

View File

@@ -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']