Fix: remove unused imports and suppress dead_code warnings

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Hakan Seven 2026-04-01 00:15:58 +03:00
commit 1aa44ac987
2 changed files with 3 additions and 2 deletions

View file

@ -1918,7 +1918,7 @@ impl H7CAD {
let wires = scene.entity_wires();
// Read PlotSettings for current layout (if available).
use acadrust::objects::{ObjectType, PlotType, PlotRotation};
use acadrust::objects::{ObjectType, PlotType};
let ps_snap = scene.document.objects.values().find_map(|obj| {
if let ObjectType::PlotSettings(ps) = obj {
if ps.page_name == layout_name { Some(ps.clone()) } else { None }
@ -1936,7 +1936,7 @@ impl H7CAD {
.unwrap_or(false);
let (ox, oy) = if use_extents {
if let Some((mn, mx)) = scene.model_space_extents() {
if let Some((mn, _mx)) = scene.model_space_extents() {
(-mn.x as f64, -mn.y as f64)
} else {
(-x0, -y0)

View file

@ -463,6 +463,7 @@ fn layout_context_menu_overlay(name: &str) -> Element<'_, Message> {
/// Modal panel for editing paper width / height of the current layout.
// ── Paper size presets ────────────────────────────────────────────────────
#[allow(dead_code)]
const PAPER_PRESETS: &[(&str, f64, f64)] = &[
("A4 Portrait", 210.0, 297.0),
("A4 Landscape", 297.0, 210.0),