 Helpers = require('./helpers')
-{CompositeDisposable, Emitter} = require 'atom'
+{Emitter} = require 'atom'
 
 class MessageRegistry
   constructor: (@linter)->
     @messages = new Map()
     @emitter = new Emitter
-    @subscriptions = new CompositeDisposable
-    @subscriptions.add atom.workspace.onDidChangeActivePaneItem =>
-      @messages.forEach (messages) => @classifyMessages(messages)
-      @emitter.emit 'did-classify'
 
   set: (linter, messages) ->
     Helpers.validateMessages(messages)
     @classifyMessages(messages)
     @messages.set(linter, messages)
-    @emitter.emit 'did-classify'
     @emitter.emit 'did-change', @messages
 
   delete: (linter) ->


  destroy: ->
    @messages.clear()
    @subscriptions.dispose()
    @emitter.dispose()



  onDidChange: (callback) ->
    return @emitter.on 'did-change', callback

  classifyMessages: (messages)->
    isProject = @linter.state.scope is 'Project'
    activeFile = atom.workspace.getActiveTextEditor()?.getPath()
