From db35022d0e88f64f4e98001f37fc58cbdb5ea4db Mon Sep 17 00:00:00 2001 From: Ben Ogle Date: Mon, 30 Mar 2015 17:17:21 -0700 Subject: [PATCH] Remove OverlayManager from the LinesComponent --- src/lines-component.coffee | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/lines-component.coffee b/src/lines-component.coffee index 8389a1ae9..5004d4060 100644 --- a/src/lines-component.coffee +++ b/src/lines-component.coffee @@ -4,7 +4,6 @@ _ = require 'underscore-plus' CursorsComponent = require './cursors-component' HighlightsComponent = require './highlights-component' -OverlayManager = require './overlay-manager' DummyLineNode = $$(-> @div className: 'line', style: 'position: absolute; visibility: hidden;', => @span 'x')[0] AcceptFilter = {acceptNode: -> NodeFilter.FILTER_ACCEPT} @@ -40,13 +39,6 @@ class LinesComponent insertionPoint.setAttribute('select', '.overlayer') @domNode.appendChild(insertionPoint) - insertionPoint = document.createElement('content') - insertionPoint.setAttribute('select', 'atom-overlay') - @overlayManager = new OverlayManager(@presenter, @hostElement) - @domNode.appendChild(insertionPoint) - else - @overlayManager = new OverlayManager(@presenter, @domNode) - updateSync: (state) -> @newState = state.content @oldState ?= {lines: {}} @@ -82,8 +74,6 @@ class LinesComponent @cursorsComponent.updateSync(state) @highlightsComponent.updateSync(state) - @overlayManager?.render(state) - @oldState.indentGuidesVisible = @newState.indentGuidesVisible @oldState.scrollWidth = @newState.scrollWidth