     atom.config.observe 'minimap.charHeight', (@charHeight) => @forceUpdate()
     atom.config.observe 'minimap.textOpacity', (@textOpacity) => @forceUpdate()
 
-  pixelPositionForScreenPosition: (position) ->
-    {row, column} = @buffer.constructor.Point.fromObject(position)
-    actualRow = Math.floor(row)
-
-    {top: row * @getLineHeight(), left: column}
-
+  # Destroys the {MinimapRenderView} instance, unsubscribes from the listened
+  # events and releases its resources.
   destroy: ->
     @unsubscribe()
     @subscriptions.dispose()
     @editorView = null
 
+  # Sets the `EditorView` for which the {MinimapRenderView} instance
+  # is displayed.
+  #
+  # editorView - The `EditorView` instance.
   setEditorView: (@editorView) ->
     @editor = @editorView.getModel()
     @buffer = @editorView.getEditor().getBuffer()

      @update()
      @frameRequested = false

  forceUpdate: ->
    @tokenColorCache = {}
    @decorationColorCache = {}

Delegato = require 'delegato'
DecorationManagement = require './mixins/decoration-management'

# Public: The {MinimapRenderView} class is responsible to render the minimap
# onto its canvas.
module.exports =
class MinimapRenderView extends ScrollView
  Emitter.includeInto(this)
  Delegato.includeInto(this)
  DecorationManagement.includeInto(this)


  @delegatesMethods 'getMarker', 'findMarkers', toProperty: 'editor'

