forked from 1b-agent/opencadstudio-upstream
Fix: remove unused imports and suppress dead_code warnings
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
This commit is contained in:
1 parent
617d7ba56a
commit
1aa44ac987
2 files changed
+3
-2
No files matched your search
+2
-2
@@ -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)
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in new issue
Block a user