   destroyInactiveItems: ->
     @destroyItem(item) for item in @getItems() when item isnt @activeItem
 
-  # Public: Destroy the pane and all its items.
-  #
-  # If this is the last pane, all the items will be destroyed but the pane
-  # itself will not be destroyed.
-  destroy: ->
-    if @container?.isAlive() and @container.getPanes().length is 1
-      @destroyItems()
-    else
-      super
-
-  # Called by model superclass.
-  destroyed: ->
-    @emitter.emit 'did-destroy'
-    @container.activateNextPane() if @isActive()
-    item.destroy?() for item in @items.slice()
-
   promptToSaveItem: (item) ->
     return true unless item.shouldPromptToSave?()
 

  onWillDestroyItem: (callback) ->
    @emitter.on 'will-destroy-item', callback

  # Public: Determine whether the pane is active.
  #
  # Returns a {Boolean}.
  isActive: ->
    @container?.getActivePane() is this

  # Called by the view layer to indicate that the pane has gained focus.
  focus: ->
    @focused = true

    @focused = false
    true # if this is called from an event handler, don't cancel it

  getPanes: -> [this]

  ###
  Section: Items
  ###

  # Public: Get the items in this pane.
  #
