Remove unnecessary unsubscribe from buffer in autocomplete

It no longer subscribes to the buffer, so unsubscribe isn't needed.
This commit is contained in:
Nathan Sobo
2013-01-02 04:51:50 -07:00
parent bce5104d15
commit b3b5e63fa9

View File

@@ -31,7 +31,6 @@ class Autocomplete extends SelectList
handleEvents: ->
@editor.on 'editor-path-change', => @setCurrentBuffer(@editor.getBuffer())
@editor.on 'before-remove', => @currentBuffer?.off '.autocomplete'
@editor.command 'autocomplete:attach', => @attach()
@miniEditor.preempt 'textInput', (e) =>