From 8419afd2e1c52e72311addf746e9281be28fcf39 Mon Sep 17 00:00:00 2001 From: Joscha Date: Thu, 25 Aug 2022 22:08:47 +0200 Subject: [PATCH] Remove old comment --- src/ui/chat/tree/cursor.rs | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/ui/chat/tree/cursor.rs b/src/ui/chat/tree/cursor.rs index aba8bc3..99e8344 100644 --- a/src/ui/chat/tree/cursor.rs +++ b/src/ui/chat/tree/cursor.rs @@ -435,24 +435,3 @@ impl> InnerTreeViewState { } } } - -/* - pub async fn center_cursor>( - &mut self, - store: &S, - cursor: &mut Option>, - frame: &mut Frame, - size: Size, - ) { - if let Some(cursor) = cursor { - cursor.proportion = 0.5; - - // Correcting the offset just to make sure that this function - // behaves nicely if the cursor has too many lines. - let old_blocks = self.layout_blocks(store, Some(cursor), frame, size).await; - let old_cursor_id = Some(cursor.id.clone()); - self.correct_cursor_offset(store, frame, size, &old_blocks, &old_cursor_id, cursor) - .await; - } - } -*/