Skip to content

Removal of lang_string_set_to_xml (dead code)#457

Merged
s-heppner merged 1 commit intoeclipse-basyx:developfrom
rwth-iat:fix_Issue_397
Feb 4, 2026
Merged

Removal of lang_string_set_to_xml (dead code)#457
s-heppner merged 1 commit intoeclipse-basyx:developfrom
rwth-iat:fix_Issue_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

Copy link
Contributor

@s-heppner s-heppner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@s-heppner s-heppner merged commit 799a2e6 into eclipse-basyx:develop Feb 4, 2026
15 checks passed
@s-heppner s-heppner deleted the fix_Issue_397 branch February 4, 2026 11:36
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.

2 participants