Remove some dead code.

This commit is contained in:
Cheng Zhao
2013-05-28 18:47:32 +08:00
parent 0cc86b024d
commit b1e8a45fbe
2 changed files with 4 additions and 14 deletions

View File

@@ -92,8 +92,6 @@ afterEach ->
$('#jasmine-content').empty()
jasmine.unspy(atom, 'setWindowState')
ensureNoPathSubscriptions()
atom.pendingModals = [[]]
atom.presentingModal = false
syntax.off()
waits(0) # yield to ui thread to make screen update more frequently

View File

@@ -10,14 +10,9 @@ window.atom =
exitWhenDone: window.location.params.exitWhenDone
devMode: window.location.params.devMode
loadedThemes: []
pendingBrowserProcessCallbacks: {}
loadedPackages: {}
activePackages: {}
packageStates: {}
presentingModal: false
pendingModals: [[]]
messageIdCounter: 1
originalSendMessageToBrowserProcess: -> console.log 'this methods needs to be replaced'
getPathToOpen: ->
window.location.params.pathToOpen
@@ -178,9 +173,6 @@ window.atom =
openConfig: ->
ipc.sendChannel('open-config')
restartRendererProcess: ->
@sendMessageToBrowserProcess('restartRendererProcess')
confirm: (message, detailedMessage, buttonLabelsAndCallbacks...) ->
buttons = []
callbacks = []
@@ -252,16 +244,16 @@ window.atom =
windowState
update: ->
@sendMessageToBrowserProcess('update')
throw new Error('atom.update is not implemented')
getUpdateStatus: (callback) ->
@sendMessageToBrowserProcess('getUpdateStatus', [], callback)
throw new Error('atom.getUpdateStatus is not implemented')
crashMainProcess: ->
@sendMessageToBrowserProcess('crash')
throw new Error('atom.crashMainProcess is not implemented')
crashRenderProcess: ->
$native.crash()
throw new Error('atom.crashRenderProcess is not implemented')
requireUserInitScript: ->
userInitScriptPath = fsUtils.join(config.configDirPath, "user.coffee")