   getPaneAt: (coords) ->
     @test.pane or @getElement(@lastCoords, 'atom-pane')?.getModel()
 
-  paneForTab: (tab) ->
-    tab.parentElement.pane
-
-  itemForTab: (tab) ->
-    @paneForTab(tab).getItems()[indexOf(tab)]
-
   isOnlyTabInPane: (pane, tab) ->
-    pane.getItems().length is 1 and pane is @paneForTab tab
+    pane.getItems().length is 1 and pane is tab.pane
 
   normalizeCoords: ({left, top, width, height}, [x, y]) ->
     [(x-left)/width, (y-top)/height]

{closest, indexOf, matches} = require './html-helpers'

module.exports =


      when 'down'  then target.splitDown()
    tab = e.target
    toPane ?= target
    fromPane = tab.pane
    return if toPane is fromPane
    item = tab.item
    fromPane.moveItemToPane item, toPane
    toPane.activateItem item
    toPane.activate()
