Chore: remove unused imports and suppress unused variable warnings
Removes dead use statements across dispatch, formula, import, model, and UI modules. Prefixes intentionally unused variables with _ in app.rs, analyzer.rs, and grid.rs. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@ -5,7 +5,6 @@ use crossterm::event::{KeyCode, KeyEvent, KeyModifiers};
|
||||
|
||||
use crate::model::Model;
|
||||
use crate::model::cell::{CellKey, CellValue};
|
||||
use crate::formula::parse_formula;
|
||||
use crate::import::wizard::{ImportWizard, WizardStep};
|
||||
use crate::persistence;
|
||||
use crate::view::Axis;
|
||||
@ -929,7 +928,7 @@ impl App {
|
||||
}
|
||||
|
||||
fn jump_to_last_row(&mut self) {
|
||||
let view_name = self.model.active_view.clone();
|
||||
let _view_name = self.model.active_view.clone();
|
||||
if let Some(view) = self.model.active_view() {
|
||||
let row_cats: Vec<String> = view.categories_on(Axis::Row).into_iter().map(String::from).collect();
|
||||
let count = row_cats.first()
|
||||
@ -944,7 +943,7 @@ impl App {
|
||||
}
|
||||
|
||||
fn jump_to_last_col(&mut self) {
|
||||
let view_name = self.model.active_view.clone();
|
||||
let _view_name = self.model.active_view.clone();
|
||||
if let Some(view) = self.model.active_view() {
|
||||
let col_cats: Vec<String> = view.categories_on(Axis::Column).into_iter().map(String::from).collect();
|
||||
let count = col_cats.first()
|
||||
|
||||
@ -2,7 +2,6 @@ use ratatui::{
|
||||
buffer::Buffer,
|
||||
layout::Rect,
|
||||
style::{Color, Modifier, Style},
|
||||
text::{Line, Span},
|
||||
widgets::{Block, Borders, Widget},
|
||||
};
|
||||
use unicode_width::UnicodeWidthStr;
|
||||
@ -181,7 +180,7 @@ impl<'a> GridWidget<'a> {
|
||||
Style::default().fg(Color::Yellow).add_modifier(Modifier::BOLD));
|
||||
|
||||
let mut x = area.x + ROW_HEADER_WIDTH;
|
||||
for (ci, col_item) in visible_col_items.iter().enumerate() {
|
||||
for (_ci, col_item) in visible_col_items.iter().enumerate() {
|
||||
if x >= area.x + area.width { break; }
|
||||
let mut coords = page_coords.clone();
|
||||
for (cat, item) in col_cats.iter().zip(col_item.iter()) {
|
||||
|
||||
@ -7,4 +7,3 @@ pub mod tile_bar;
|
||||
pub mod import_wizard_ui;
|
||||
pub mod help;
|
||||
|
||||
pub use app::{App, AppMode};
|
||||
|
||||
Reference in New Issue
Block a user