mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Kill dead code
This commit is contained in:
committed by
probablycorey
parent
0238061fa2
commit
d69335f08d
@@ -21,19 +21,6 @@ class TabBarView extends SortableList
|
||||
|
||||
@updateActiveTab()
|
||||
|
||||
# @setActiveTab(@editor.getActiveEditSessionIndex())
|
||||
|
||||
# @editor.on 'editor:edit-session-added', (e, editSession) => @addTabForEditSession(editSession)
|
||||
# @editor.on 'editor:edit-session-removed', (e, editSession, index) => @removeTabAtIndex(index)
|
||||
# @editor.on 'editor:edit-session-order-changed', (e, editSession, fromIndex, toIndex) =>
|
||||
# fromTab = @find(".tab:eq(#{fromIndex})")
|
||||
# toTab = @find(".tab:eq(#{toIndex})")
|
||||
# fromTab.detach()
|
||||
# if fromIndex < toIndex
|
||||
# fromTab.insertAfter(toTab)
|
||||
# else
|
||||
# fromTab.insertBefore(toTab)
|
||||
|
||||
@on 'click', '.tab', (e) =>
|
||||
tab = $(e.target).closest('.tab').view()
|
||||
@pane.showItem(tab.item)
|
||||
@@ -81,13 +68,6 @@ class TabBarView extends SortableList
|
||||
updateActiveTab: ->
|
||||
@setActiveTab(@tabForItem(@pane.activeItem))
|
||||
|
||||
removeTabAtIndex: (index) ->
|
||||
@find(".tab:eq(#{index})").remove()
|
||||
|
||||
containsEditSession: (editor, editSession) ->
|
||||
for session in editor.editSessions
|
||||
return true if editSession.getPath() is session.getPath()
|
||||
|
||||
shouldAllowDrag: ->
|
||||
(@paneContainer.getPanes().length > 1) or (@pane.getItems().length > 1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user