   getPaths: ->
     @paths
 
-  markResults: ->
-    @markedResults = {}
-    for filePath, val of @results
-      @markedResults[filePath] = true
-    @markedResults
-
-  removeMarkedResults: ->
-    for filePath, val of @markedResults
-      @removeResult(filePath)
-    @markedResults = null
-
-  unmarkResult: (filePath) ->
-    delete @markedResults[filePath]
-
   getResult: (filePath) ->
     @results[filePath]
 
   setResult: (filePath, result) ->
-    @unmarkResult(filePath)
     if result
       @addResult(filePath, result)
     else


class Result
  @create: (result) ->
    if result.matches?.length then new Result(result) else null

  constructor: (result) ->
    _.extend(this, result)

      @setResult(result.filePath, Result.create(result))

    @emit('search', promise)
    promise.then => @emit('finished-searching', @getResultsSummary())

  replace: (pattern, searchPaths, replacementPattern, replacementPaths) ->
    regex = @getRegex(pattern)
