Clean up build warnings
Resolve all compiler warnings across daw-backend, lightningbeam-core, and lightningbeam-editor: - Delete dead code: the superseded CPU raster tools in raster_tool.rs (EffectBrush/Smudge/Gradient/Transform/Warp/Liquify/Selection — replaced by the GPU path), plus orphaned helpers and never-read struct fields. - Mechanical fixes: drop unused imports/variables/mut, underscore unused params, `drop(&x)` -> `let _ = x`, deprecated egui::Rounding -> CornerRadius, snake_case rename, elided-lifetime Cow<'_, [u8]>. - Keep the WIP CSS theming system (theme.rs/theme_render.rs) under #[allow(dead_code)] rather than deleting it. Editor checks warning-free; 293 core tests pass.
This commit is contained in:
@@ -1161,7 +1161,7 @@ impl VectorGraph {
|
||||
/// faces that lie inside it (inheriting its colour/rule); faces outside it — or in a
|
||||
/// hole — are dropped.
|
||||
fn retrace_fills_after_cut(&mut self, new_edges: &[EdgeId]) {
|
||||
use kurbo::{ParamCurve, Shape};
|
||||
use kurbo::Shape;
|
||||
let new_set: HashSet<EdgeId> = new_edges
|
||||
.iter()
|
||||
.filter(|&&e| !e.is_none() && !self.edges[e.idx()].deleted)
|
||||
@@ -1642,21 +1642,6 @@ impl VectorGraph {
|
||||
// Boundary tracing internals
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
/// Find the nearest non-deleted edge to a point. Returns (EdgeId, t, distance).
|
||||
fn nearest_edge_to_point(&self, point: Point) -> Option<(EdgeId, f64, f64)> {
|
||||
let mut best: Option<(EdgeId, f64, f64)> = None;
|
||||
for (i, e) in self.edges.iter().enumerate() {
|
||||
if e.deleted {
|
||||
continue;
|
||||
}
|
||||
let eid = EdgeId(i as u32);
|
||||
let (t, dist) = nearest_point_on_cubic(&e.curve, point);
|
||||
if best.is_none() || dist < best.unwrap().2 {
|
||||
best = Some((eid, t, dist));
|
||||
}
|
||||
}
|
||||
best
|
||||
}
|
||||
|
||||
/// Build a BezPath from a boundary (without storing it as a fill).
|
||||
/// Handles `EdgeId::NONE` separators to start new contours (holes).
|
||||
|
||||
Reference in New Issue
Block a user