Remove specs and methods that are no longer used

This commit is contained in:
probablycorey 2013-08-16 14:28:24 -07:00 committed by Corey Johnson & Nathan Sobo
parent 9a156c8629
commit efb70e0562
3 changed files with 0 additions and 21 deletions

View File

@ -365,11 +365,3 @@ describe "RootView", ->
rootView.open(require.resolve('fixtures/sample.txt'))
expect(count).toBe 1
expect(callbackBuffer).toBe rootView.getActiveView().getBuffer()
describe "when a 'new-editor' event is triggered", ->
it "opens a new untitled editor", ->
itemCount = rootView.getActivePane().getItems().length
rootView.trigger 'new-editor'
expect(rootView.getActivePaneItem().getPath()).toBeUndefined()
expect(rootView.getActivePaneItem().getBuffer().fileExists()).toBeFalsy()
expect(rootView.getActivePane().getItems().length).toBe itemCount + 1

View File

@ -132,13 +132,6 @@ window.atom =
open: (url...) ->
ipc.sendChannel('open', [url...])
openDev: (url...) ->
ipc.sendChannel('open-dev', [url...])
newWindow: ->
ipc.sendChannel('new-window')
openWindow: (windowSettings) ->
ipc.sendChannel('open-window', windowSettings)
@ -254,9 +247,6 @@ window.atom =
else
@windowState
update: ->
ipc.sendChannel 'install-update'
crashMainProcess: ->
remote.process.crash()

View File

@ -86,9 +86,6 @@ class RootView extends View
@command 'pane:reopen-closed-item', =>
@panes.reopenItem()
@command 'new-editor', =>
@open()
_.nextTick => atom.setFullScreen(@state.get('fullScreen'))
serialize: ->