       symbol.removeInstance(editorPath, bufferRow, scopes)
       if symbol.getCount() is 0
         delete @symbolMap[symbolKey]
-        @removeSymbolFromList(symbol)
-
-  addSymbolToList: (symbol) ->
-    @symbols.push(symbol)
-
-  removeSymbolFromList: (symbol) ->
-    index = @symbols.indexOf(symbol)
-    @symbols.splice(index, 1) if index > -1
+        @count -= 1
 
   getTokenizedLines: (editor) ->
     # Warning: displayBuffer and tokenizedBuffer are private APIs. Please do not


module.exports =
class SymbolStore
  constructor: (@wordRegex) ->
    @clear()

  clear: ->
    @symbolMap = {}
    @symbols = []

  getLength: -> @symbols.length

  getSymbol: (symbolKey) ->
    symbolKey = @getKey(symbolKey)

    symbol = @symbolMap[symbolKey]
    unless symbol?
      @symbolMap[symbolKey] = symbol = new Symbol(symbolText)
      @count += 1

    symbol.addInstance(editorPath, bufferRow, scopes)

