From 0366d2f8cc09d4af8f992474397077e61db107c4 Mon Sep 17 00:00:00 2001 From: canvrno-oai Date: Tue, 14 Apr 2026 15:53:21 -0700 Subject: [PATCH] Remove dead code --- .../src/bottom_pane/selection_popup_common.rs | 48 ------------------- 1 file changed, 48 deletions(-) diff --git a/codex-rs/tui/src/bottom_pane/selection_popup_common.rs b/codex-rs/tui/src/bottom_pane/selection_popup_common.rs index 0c612e3a90..cae7510481 100644 --- a/codex-rs/tui/src/bottom_pane/selection_popup_common.rs +++ b/codex-rs/tui/src/bottom_pane/selection_popup_common.rs @@ -617,35 +617,6 @@ pub(crate) fn render_rows( ) } -/// Render a list of rows using the provided ScrollState, with shared styling -/// and behavior for selection popups. -/// This mode keeps column placement stable while scrolling by sizing the -/// description column against the full dataset. -/// -/// This function should be paired with -/// [`measure_rows_height_stable_col_widths`] so reserved and rendered heights -/// stay in sync. -/// Returns the number of terminal lines actually rendered. -pub(crate) fn render_rows_stable_col_widths( - area: Rect, - buf: &mut Buffer, - rows_all: &[GenericDisplayRow], - state: &ScrollState, - max_results: usize, - empty_message: &str, -) -> u16 { - render_rows_inner( - area, - buf, - rows_all, - state, - max_results, - empty_message, - ColumnWidthMode::AutoAllRows, - None, - ) -} - /// Render a list of rows using the provided ScrollState and explicit /// [`ColumnWidthMode`] behavior. /// @@ -785,25 +756,6 @@ pub(crate) fn measure_rows_height( ) } -/// Measures selection-row height while using full-dataset column alignment. -/// This should be paired with [`render_rows_stable_col_widths`] so layout -/// reservation matches rendering behavior. -pub(crate) fn measure_rows_height_stable_col_widths( - rows_all: &[GenericDisplayRow], - state: &ScrollState, - max_results: usize, - width: u16, -) -> u16 { - measure_rows_height_inner( - rows_all, - state, - max_results, - width, - ColumnWidthMode::AutoAllRows, - None, - ) -} - /// Measure selection-row height using explicit [`ColumnWidthMode`] behavior. /// /// This is the low-level companion to [`render_rows_with_col_width_mode`].