   destroy: ->
     @gutters = null
     @emitter.dispose()
-    @unsubscribe()
 
   # Creates and returns a {Gutter}.
   # * `options` An {Object} with the following fields:

{Emitter} = require 'event-kit'
{Subscriber} = require 'emissary'
Gutter = require './gutter'

# This class encapsulates the logic for adding and modifying a set of gutters.

module.exports =
class GutterContainer
  Subscriber.includeInto(this)

  # * `textEditor` The {TextEditor} to which this {GutterContainer} belongs.
  constructor: (textEditor) ->

    index = @gutters.indexOf(gutter)
    if index > -1
      @gutters.splice(index, 1)
      @emitter.emit 'did-remove-gutter', gutter.name
    else
      throw new Error 'The given gutter cannot be removed because it is not ' +
