   subscribeToEvents: ->
     # afterAttach is called 2x when dep cop is the active pane item on reload.
     return if @subscribedToEvents
-
-    @refreshCallsButton.on 'click', => @updateCalls()
-    @refreshSelectorsButton.on 'click', => @updateSelectors()
 
     @on 'click', '.deprecation-info', ->
       $(this).parent().toggleClass('collapsed')

    uri: @getURI()

  handleGrimUpdated: =>
    @refreshCallsButton.show()

  getURI: ->
    @uri

    @subscriptions = new CompositeDisposable
    @subscriptions.add Grim.on 'updated', @handleGrimUpdated
    @subscriptions.add atom.packages.onDidActivateInitialPackages =>
      @updateSelectors()

    @subscriptions.add atom.packages.onDidActivatePackage (pack) =>
      @updateSelectors() if pack.isTheme()

    @subscriptions.add atom.keymaps.onDidReloadKeymap (event) =>
      @updateSelectors() if event.path is atom.keymaps.getUserKeymapPath()

    userStylesheetPath = atom.styles.getUserStyleSheetPath()
    stylesChanged = (element) =>
      @updateSelectors() if element.getAttribute('source-path') is userStylesheetPath
    @subscriptions.add atom.styles.onDidUpdateStyleElement(stylesChanged)
    @subscriptions.add atom.styles.onDidAddStyleElement(stylesChanged)

