Skip to content
This repository has been archived by the owner on Dec 8, 2024. It is now read-only.

Commit

Permalink
remove duplicate method
Browse files Browse the repository at this point in the history
  • Loading branch information
JR-1991 committed Feb 21, 2024
1 parent cba90db commit 60a1270
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions sdRDM/generator/classrender.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def render_attribute(

if tag and len(tag.split("/")) > 1:
xml_alias = "/".join(tag.split("/")[:-1])
tag = _transform(_transform(attribute["type"][0], tag.split("/")[-1]))
tag = _transform(attribute["type"][0], tag.split("/")[-1])
wrapped = True
else:
xml_alias = None
Expand Down Expand Up @@ -682,12 +682,3 @@ def _transform(dtype: str, tag: str) -> str:
return "math"

return tag


def _transform(dtype: str) -> str:
"""Transforms a dtype into a tag for special cases"""

if dtype == "MathML":
return "math"

return dtype

0 comments on commit 60a1270

Please sign in to comment.