From 911ec9a85fc7b773fcea4b005d926702020a551f Mon Sep 17 00:00:00 2001 From: bptato Date: Sun, 12 May 2024 12:41:10 +0200 Subject: container: remove unused code --- src/local/container.nim | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/local') diff --git a/src/local/container.nim b/src/local/container.nim index 5b593f2a..75eba41b 100644 --- a/src/local/container.nim +++ b/src/local/container.nim @@ -556,11 +556,6 @@ proc setCursorX(container: Container; x: int; refresh = true; save = true) # accordingly container.setFromX(max(x - container.width + 1, container.fromx), false) container.pos.cursorx = x - elif x < container.cursorx: - # target x is lower than current x, but is outside the screen - #TODO I have no clue if/when this is used :( - container.setFromX(x, false) - container.pos.cursorx = x if container.cursorx == x and container.currentSelection != nil and container.currentSelection.x2 != x: container.currentSelection.x2 = x -- cgit 1.4.1-2-gfad0