Skip to content

Commit 0b6f241

Browse files
committed
remove unused focused row
1 parent abc3c9b commit 0b6f241

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/Playground.res

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1614,11 +1614,6 @@ let make = (~bundleBaseUrl: string, ~versions: array<string>) => {
16141614
None
16151615
}, [keyMap])
16161616

1617-
// The user can focus an error / warning on a specific line & column
1618-
// which is stored in this ref and triggered by hover / click states
1619-
// in the CodeMirror editor
1620-
let (_focusedRowCol, setFocusedRowCol) = React.useState(_ => None)
1621-
16221617
let editorCode = React.useRef(initialContent)
16231618

16241619
/* In case the compiler did some kind of syntax conversion / reformatting,
@@ -1989,8 +1984,6 @@ let make = (~bundleBaseUrl: string, ~versions: array<string>) => {
19891984
}, ~timeout=100)
19901985
typingTimer.current = Some(timer)
19911986
}}
1992-
onMarkerFocus={rowCol => setFocusedRowCol(_prev => Some(rowCol))}
1993-
onMarkerFocusLeave={_ => setFocusedRowCol(_ => None)}
19941987
keyMap
19951988
/>
19961989
</div>

0 commit comments

Comments
 (0)