Skip to content

Removal of Dead Code in object_to_xml_element - (Lang_string_set_to_xml) #455

Closed
ZANDx1 wants to merge 3 commits intoeclipse-basyx:developfrom
rwth-iat:fix/#397
Closed

Removal of Dead Code in object_to_xml_element - (Lang_string_set_to_xml) #455
ZANDx1 wants to merge 3 commits intoeclipse-basyx:developfrom
rwth-iat:fix/#397

Conversation

@ZANDx1
Copy link

@ZANDx1 ZANDx1 commented Feb 2, 2026

We decided to remove the call of lang_string_set_to_xml completely as this specific case in object_to_xml() is considered Dead code.

Because the XML tag for a LangStringSet varies based on its context (the tag is determined by the parent's attribute), it must always be called explicitly with a tag parameter by the parent's serialization logic. Since there is no scenario where a LangStringSet is serialized in isolation (It cannot be a standalone xml object), this branch is unreachable and should be removed to maintain code cleanliness.

Closes #397

Signed-off-by: Leon Huang <hleon04@icloud.com>
Signed-off-by: Leon Huang <hleon04@icloud.com>
Signed-off-by: Leon Huang <hleon04@icloud.com>
@ZANDx1 ZANDx1 closed this Feb 2, 2026
@ZANDx1 ZANDx1 deleted the fix/#397 branch February 2, 2026 15:46
@ZANDx1
Copy link
Author

ZANDx1 commented Feb 2, 2026

ECA problems. Commit history wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant