Remove RootView.getActiveEditor / getActiveEditSession

There's a bunch broken because of this… to be continued.
This commit is contained in:
Kevin Sawicki & Nathan Sobo
2013-02-21 18:32:03 -07:00
committed by probablycorey
parent 2bf5163798
commit 6304bac233
2 changed files with 20 additions and 27 deletions

View File

@@ -49,7 +49,6 @@ class RootView extends View
fontSize = config.get "editor.fontSize"
config.set("editor.fontSize", fontSize - 1) if fontSize > 1
@command 'window:focus-next-pane', => @focusNextPane()
@command 'window:save-all', => @saveAll()
@command 'window:toggle-invisibles', =>
@@ -150,16 +149,9 @@ class RootView extends View
getActivePane: ->
@panes.getActivePane()
getActiveEditor: ->
if (editor = @panes.find('.editor.active')).length
editor.view()
else
@panes.find('.editor:first').view()
getActivePaneItem: ->
@panes.getActivePaneItem()
getActiveEditSession: ->
@getActiveEditor()?.activeEditSession
getActiveView: ->
@panes.getActiveView()