chore: Fix 'unused' imports/code warnings

This commit is contained in:
Ellen Emilia Anna Zscheile 2025-05-17 12:44:57 +02:00
parent 2394fa6256
commit bdebdacd8a
8 changed files with 9 additions and 45 deletions

View File

@ -18,8 +18,8 @@ use topola::{
};
use crate::{
actions::Actions, config::Config, error_dialog::ErrorDialog, menu_bar::MenuBar,
status_bar::StatusBar, translator::Translator, viewport::Viewport, workspace::Workspace,
config::Config, error_dialog::ErrorDialog, menu_bar::MenuBar, status_bar::StatusBar,
translator::Translator, viewport::Viewport, workspace::Workspace,
};
pub struct App {

View File

@ -27,9 +27,7 @@ use topola::{
router::navmesh::NavvertexIndex,
};
use crate::{
actions::Actions, config::Config, menu_bar::MenuBar, painter::Painter, workspace::Workspace,
};
use crate::{config::Config, menu_bar::MenuBar, painter::Painter, workspace::Workspace};
pub struct Viewport {
pub transform: egui::emath::TSTransform,

View File

@ -14,12 +14,7 @@ use crate::{
drawing::{band::BandTermsegIndex, graph::PrimitiveIndex, Collect},
geometry::primitive::PrimitiveShape,
layout::LayoutEdit,
router::{
astar::AstarStepper,
navcord::Navcord,
navmesh::{Navmesh, NavvertexIndex},
RouteStepper, Router,
},
router::{astar::AstarStepper, navcord::Navcord, navmesh::Navmesh, RouteStepper, Router},
stepper::Step,
};

View File

@ -14,11 +14,7 @@ use crate::{
drawing::graph::PrimitiveIndex,
geometry::{primitive::PrimitiveShape, shape::MeasureLength},
graph::MakeRef,
router::{
astar::AstarStepper,
navcord::Navcord,
navmesh::{Navmesh, NavvertexIndex},
},
router::{astar::AstarStepper, navcord::Navcord, navmesh::Navmesh},
stepper::Step,
};

View File

@ -76,11 +76,11 @@ pub trait GetObstacles {
/// Trait for getting text strings with debug information attached to navmesh
/// edges and vertices.
pub trait GetNavmeshDebugTexts {
fn navvertex_debug_text(&self, navvertex: NavvertexIndex) -> Option<&str> {
fn navvertex_debug_text(&self, _navvertex: NavvertexIndex) -> Option<&str> {
None
}
fn navedge_debug_text(&self, navedge: (NavvertexIndex, NavvertexIndex)) -> Option<&str> {
fn navedge_debug_text(&self, _navedge: (NavvertexIndex, NavvertexIndex)) -> Option<&str> {
None
}
}

View File

@ -7,15 +7,7 @@
//! the length of specified band selections.
use crate::{
board::AccessMesadata,
drawing::graph::PrimitiveIndex,
geometry::{primitive::PrimitiveShape, shape::MeasureLength as MeasureLengthTrait},
graph::MakeRef,
router::{
astar::AstarStepper,
navcord::Navcord,
navmesh::{Navmesh, NavvertexIndex},
},
board::AccessMesadata, geometry::shape::MeasureLength as MeasureLengthTrait, graph::MakeRef,
};
use super::{

View File

@ -8,14 +8,7 @@
use crate::{
board::AccessMesadata,
drawing::graph::PrimitiveIndex,
geometry::primitive::PrimitiveShape,
layout::{via::ViaWeight, LayoutEdit},
router::{
astar::AstarStepper,
navcord::Navcord,
navmesh::{Navmesh, NavvertexIndex},
},
};
use super::{

View File

@ -4,17 +4,7 @@
//! Provides functionality to remove bands from the layout.
use crate::{
board::AccessMesadata,
drawing::graph::PrimitiveIndex,
geometry::primitive::PrimitiveShape,
layout::LayoutEdit,
router::{
astar::AstarStepper,
navcord::Navcord,
navmesh::{Navmesh, NavvertexIndex},
},
};
use crate::{board::AccessMesadata, layout::LayoutEdit};
use super::{
invoker::{