mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2025-01-06 06:28:33 +03:00
Remove specs and methods that are no longer used
This commit is contained in:
parent
9a156c8629
commit
efb70e0562
@ -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
|
||||
|
@ -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()
|
||||
|
||||
|
@ -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: ->
|
||||
|
Loading…
Reference in New Issue
Block a user