forked from 1b-agent/opencadstudio-upstream
chore: clear compiler warnings
Remove accidental dead code (unused imports, the superseded paste tool() helper, a never-read TORIENT handles field, a duplicate let binding, an unneeded mut) and mark intentional-but-unwired scaffolding with allow(dead_code): the web-only save_to_bytes, the plugin loadable() probe, the planned PICK_HIGHLIGHT colours, the DynFieldSpec label, and the layout ribbon helpers. Native build is now warning-clean apart from the upstream nom/quick-xml future-incompat notices. Co-Authored-By: Claude Opus 4.8 <[email protected]>
This commit is contained in:
1 parent
23844c137b
commit
5a36494ed7
11 files changed
+13
-19
No files matched your search
@@ -1,6 +1,6 @@
|
||||
// Paste tool — ribbon definition + CadCommand implementation.
|
||||
|
||||
use crate::modules::{IconKind, ModuleEvent, ToolDef};
|
||||
use crate::modules::IconKind;
|
||||
|
||||
/// Shared icon for the Paste button and its dropdown entries.
|
||||
pub const ICON: IconKind = IconKind::Svg(include_bytes!("../../../../assets/icons/paste.svg"));
|
||||
@@ -13,15 +13,6 @@ pub const MENU_ITEMS: &[(&str, &str, IconKind)] = &[
|
||||
("PASTEBLOCK", "Paste as Block", ICON),
|
||||
];
|
||||
|
||||
pub fn tool() -> ToolDef {
|
||||
ToolDef {
|
||||
id: "PASTECLIP",
|
||||
label: "Paste",
|
||||
icon: ICON,
|
||||
event: ModuleEvent::Command("PASTECLIP".to_string()),
|
||||
}
|
||||
}
|
||||
|
||||
// ── CadCommand implementation ─────────────────────────────────────────────
|
||||
|
||||
use acadrust::Handle;
|
||||
|
||||
@@ -9,7 +9,6 @@ use acadrust::Handle;
|
||||
use glam::Vec3;
|
||||
|
||||
use crate::command::{CadCommand, CmdResult, DynField};
|
||||
use crate::modules::{IconKind, ModuleEvent, ToolDef};
|
||||
use crate::scene::model::wire_model::WireModel;
|
||||
use acadrust::EntityType;
|
||||
|
||||
@@ -21,16 +20,14 @@ enum Step {
|
||||
}
|
||||
|
||||
pub struct TorientCommand {
|
||||
handles: Vec<Handle>,
|
||||
entities: Vec<(Handle, EntityType)>,
|
||||
view_twist: f64,
|
||||
step: Step,
|
||||
}
|
||||
|
||||
impl TorientCommand {
|
||||
pub fn new(handles: Vec<Handle>, entities: Vec<(Handle, EntityType)>, view_twist: f64) -> Self {
|
||||
pub fn new(entities: Vec<(Handle, EntityType)>, view_twist: f64) -> Self {
|
||||
Self {
|
||||
handles,
|
||||
entities,
|
||||
view_twist,
|
||||
step: Step::AngleOrFirstPoint,
|
||||
|
||||
Reference in new issue
Block a user