 Q = require 'q'
 {deprecate} = require 'grim'
 {Model} = require 'theorist'
-{Subscriber} = require 'emissary'
-EmitterMixin = require('emissary').Emitter
-{Emitter} = require 'event-kit'
+{Emitter, Subscriber} = require 'emissary'
 Serializable = require 'serializable'
 TextBuffer = require 'text-buffer'
 {Directory} = require 'pathwatcher'

    else
      @rootDirectory = null

    @emit 'path-changed'
    @emitter.emit 'did-change-path', @getPath()

  # Public: Returns the root {Directory} object for this project.
  getRootDirectory: ->


  constructor: ({path, @buffers}={}) ->
    @buffers ?= []

    for buffer in @buffers
      do (buffer) =>
        buffer.onDidDestroy => @removeBuffer(buffer)

    @setPath(path)

  serializeParams: ->
    path: @path
