From 5414683f85eecee2f49e94d25106c85b68a59c00 Mon Sep 17 00:00:00 2001 From: Mike Fix Date: Thu, 31 Oct 2019 14:52:54 -0700 Subject: [PATCH] remove old commented out code --- components/Carbon.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/components/Carbon.js b/components/Carbon.js index 57169b4..f8851bd 100644 --- a/components/Carbon.js +++ b/components/Carbon.js @@ -102,15 +102,6 @@ class Carbon extends React.PureComponent { onMouseUp = () => { if (this.currentSelection) { - // const { editor } = this.props.editorRef.current - // const startPos = editor.charCoords(this.currentSelection.from, 'window') - // const endPos = editor.charCoords(this.currentSelection.to, 'window') - - // const container = this.props.innerRef.current.getBoundingClientRect() - - // const top = Math.max(startPos.bottom, endPos.bottom) - container.top - 3 - // const left = (startPos.left + endPos.left) / 2 - container.left - 68 - // { ...this.currentSelection, top, left } this.setState({ selectionAt: this.currentSelection }, () => { this.currentSelection = null })