From 71667cfafeb08a02257834bef1640bcd4dda6a0b Mon Sep 17 00:00:00 2001 From: Hakan Seven Date: Tue, 7 Apr 2026 14:43:25 +0300 Subject: [PATCH] cleanup --- src/modules/annotate/ddedit.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/modules/annotate/ddedit.rs b/src/modules/annotate/ddedit.rs index 0989f1594..37567105e 100644 --- a/src/modules/annotate/ddedit.rs +++ b/src/modules/annotate/ddedit.rs @@ -83,13 +83,3 @@ pub fn entity_text(entity: &EntityType) -> Option { } } -/// Apply new text content to a cloned entity, returning the updated entity. -pub fn set_entity_text(mut entity: EntityType, new_text: &str) -> Option { - match &mut entity { - EntityType::Text(t) => { t.value = new_text.to_string(); Some(entity) } - EntityType::MText(t) => { t.value = new_text.to_string(); Some(entity) } - EntityType::AttributeDefinition(a) => { a.default_value = new_text.to_string(); Some(entity) } - EntityType::AttributeEntity(a) => { a.set_value(new_text.to_string()); Some(entity) } - _ => None, - } -}