mirror of https://codeberg.org/topola/topola.git
chore: Fix 'unused' imports/code warnings
This commit is contained in:
parent
2394fa6256
commit
bdebdacd8a
|
|
@ -18,8 +18,8 @@ use topola::{
|
||||||
};
|
};
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
actions::Actions, config::Config, error_dialog::ErrorDialog, menu_bar::MenuBar,
|
config::Config, error_dialog::ErrorDialog, menu_bar::MenuBar, status_bar::StatusBar,
|
||||||
status_bar::StatusBar, translator::Translator, viewport::Viewport, workspace::Workspace,
|
translator::Translator, viewport::Viewport, workspace::Workspace,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub struct App {
|
pub struct App {
|
||||||
|
|
|
||||||
|
|
@ -27,9 +27,7 @@ use topola::{
|
||||||
router::navmesh::NavvertexIndex,
|
router::navmesh::NavvertexIndex,
|
||||||
};
|
};
|
||||||
|
|
||||||
use crate::{
|
use crate::{config::Config, menu_bar::MenuBar, painter::Painter, workspace::Workspace};
|
||||||
actions::Actions, config::Config, menu_bar::MenuBar, painter::Painter, workspace::Workspace,
|
|
||||||
};
|
|
||||||
|
|
||||||
pub struct Viewport {
|
pub struct Viewport {
|
||||||
pub transform: egui::emath::TSTransform,
|
pub transform: egui::emath::TSTransform,
|
||||||
|
|
|
||||||
|
|
@ -14,12 +14,7 @@ use crate::{
|
||||||
drawing::{band::BandTermsegIndex, graph::PrimitiveIndex, Collect},
|
drawing::{band::BandTermsegIndex, graph::PrimitiveIndex, Collect},
|
||||||
geometry::primitive::PrimitiveShape,
|
geometry::primitive::PrimitiveShape,
|
||||||
layout::LayoutEdit,
|
layout::LayoutEdit,
|
||||||
router::{
|
router::{astar::AstarStepper, navcord::Navcord, navmesh::Navmesh, RouteStepper, Router},
|
||||||
astar::AstarStepper,
|
|
||||||
navcord::Navcord,
|
|
||||||
navmesh::{Navmesh, NavvertexIndex},
|
|
||||||
RouteStepper, Router,
|
|
||||||
},
|
|
||||||
stepper::Step,
|
stepper::Step,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,11 +14,7 @@ use crate::{
|
||||||
drawing::graph::PrimitiveIndex,
|
drawing::graph::PrimitiveIndex,
|
||||||
geometry::{primitive::PrimitiveShape, shape::MeasureLength},
|
geometry::{primitive::PrimitiveShape, shape::MeasureLength},
|
||||||
graph::MakeRef,
|
graph::MakeRef,
|
||||||
router::{
|
router::{astar::AstarStepper, navcord::Navcord, navmesh::Navmesh},
|
||||||
astar::AstarStepper,
|
|
||||||
navcord::Navcord,
|
|
||||||
navmesh::{Navmesh, NavvertexIndex},
|
|
||||||
},
|
|
||||||
stepper::Step,
|
stepper::Step,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -76,11 +76,11 @@ pub trait GetObstacles {
|
||||||
/// Trait for getting text strings with debug information attached to navmesh
|
/// Trait for getting text strings with debug information attached to navmesh
|
||||||
/// edges and vertices.
|
/// edges and vertices.
|
||||||
pub trait GetNavmeshDebugTexts {
|
pub trait GetNavmeshDebugTexts {
|
||||||
fn navvertex_debug_text(&self, navvertex: NavvertexIndex) -> Option<&str> {
|
fn navvertex_debug_text(&self, _navvertex: NavvertexIndex) -> Option<&str> {
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
|
|
||||||
fn navedge_debug_text(&self, navedge: (NavvertexIndex, NavvertexIndex)) -> Option<&str> {
|
fn navedge_debug_text(&self, _navedge: (NavvertexIndex, NavvertexIndex)) -> Option<&str> {
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,15 +7,7 @@
|
||||||
//! the length of specified band selections.
|
//! the length of specified band selections.
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
board::AccessMesadata,
|
board::AccessMesadata, geometry::shape::MeasureLength as MeasureLengthTrait, graph::MakeRef,
|
||||||
drawing::graph::PrimitiveIndex,
|
|
||||||
geometry::{primitive::PrimitiveShape, shape::MeasureLength as MeasureLengthTrait},
|
|
||||||
graph::MakeRef,
|
|
||||||
router::{
|
|
||||||
astar::AstarStepper,
|
|
||||||
navcord::Navcord,
|
|
||||||
navmesh::{Navmesh, NavvertexIndex},
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
use super::{
|
use super::{
|
||||||
|
|
|
||||||
|
|
@ -8,14 +8,7 @@
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
board::AccessMesadata,
|
board::AccessMesadata,
|
||||||
drawing::graph::PrimitiveIndex,
|
|
||||||
geometry::primitive::PrimitiveShape,
|
|
||||||
layout::{via::ViaWeight, LayoutEdit},
|
layout::{via::ViaWeight, LayoutEdit},
|
||||||
router::{
|
|
||||||
astar::AstarStepper,
|
|
||||||
navcord::Navcord,
|
|
||||||
navmesh::{Navmesh, NavvertexIndex},
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
use super::{
|
use super::{
|
||||||
|
|
|
||||||
|
|
@ -4,17 +4,7 @@
|
||||||
|
|
||||||
//! Provides functionality to remove bands from the layout.
|
//! Provides functionality to remove bands from the layout.
|
||||||
|
|
||||||
use crate::{
|
use crate::{board::AccessMesadata, layout::LayoutEdit};
|
||||||
board::AccessMesadata,
|
|
||||||
drawing::graph::PrimitiveIndex,
|
|
||||||
geometry::primitive::PrimitiveShape,
|
|
||||||
layout::LayoutEdit,
|
|
||||||
router::{
|
|
||||||
astar::AstarStepper,
|
|
||||||
navcord::Navcord,
|
|
||||||
navmesh::{Navmesh, NavvertexIndex},
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
use super::{
|
use super::{
|
||||||
invoker::{
|
invoker::{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue