mirror of
https://github.com/atom/atom.git
synced 2026-01-24 22:38:20 -05:00
Remove RootView.addPane method
This commit is contained in:
@@ -38,9 +38,6 @@ class RootView extends View
|
||||
open: (path) ->
|
||||
@lastActiveEditor().setBuffer(@project.open(path))
|
||||
|
||||
addPane: (view) ->
|
||||
@append(view)
|
||||
|
||||
editorFocused: (editor) ->
|
||||
if @panes.containsElement(editor)
|
||||
_.remove(@editors, editor)
|
||||
@@ -63,7 +60,6 @@ class RootView extends View
|
||||
.appendTo(@panes)
|
||||
.focus()
|
||||
|
||||
|
||||
adjustSplitPanes: (element = @panes.children(':first'))->
|
||||
if element.hasClass('row')
|
||||
totalUnits = @horizontalGridUnits(element)
|
||||
@@ -126,4 +122,4 @@ class RootView extends View
|
||||
@fileFinder = new FileFinder
|
||||
urls: relativePaths
|
||||
selected: (relativePath) => @open(relativePath)
|
||||
@addPane @fileFinder
|
||||
@append @fileFinder
|
||||
|
||||
Reference in New Issue
Block a user