Skip to content

Commit

Permalink
cleanup: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanceras committed Apr 6, 2024
1 parent 20322ef commit 0d09765
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 15 deletions.
4 changes: 2 additions & 2 deletions examples/data-viewer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ fn create_data_view() -> DataView {

data_view.set_allocated_size(total_width, 600);
data_view.set_column_widths(&column_widths);
//data_view.freeze_columns(vec![0]);
//data_view.freeze_rows(vec![(0, vec![0, 1, 2])]);
data_view.freeze_columns(vec![0]);
data_view.freeze_rows(vec![(0, vec![0, 1, 2])]);
data_view
}
4 changes: 0 additions & 4 deletions examples/data-viewer/src/views/data_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -406,10 +406,6 @@ impl DataView {
self.scrollbar_to_bottom() <= scroll_bottom_allowance
}

#[allow(unused)]
fn is_scrolled_bottom(&self) -> bool {
self.scrollbar_to_bottom() <= 0
}

/// These are values in a row that is under the frozen columns
/// Can move up and down
Expand Down
9 changes: 0 additions & 9 deletions examples/data-viewer/src/views/page_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,15 +168,6 @@ impl PageView {
})
}

#[allow(unused)]
fn frozen_row_height(&self) -> i32 {
self.frozen_rows.len() as i32 * RowView::row_height() //use the actual row height
}

#[allow(unused)]
fn frozen_column_width(&self) -> i32 {
self.frozen_columns.len() as i32 * 200 //use the actual column sizes for each frozen columns
}

/// Keep updating which columns are frozen
/// call these when new rows are set or added
Expand Down

0 comments on commit 0d09765

Please sign in to comment.