Skip to content

Commit

Permalink
Fix unused attributes for javascript
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Günther <[email protected]>
  • Loading branch information
tom-hg57 committed Dec 27, 2024
1 parent 3b44357 commit 2034740
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cimgen/languages/javascript/lang_pack.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,7 @@ def run_template(output_path: str, class_details: dict) -> None:
if class_details["class_name"] == "String":
return

for index, attribute in enumerate(class_details["attributes"]):
if not attribute["is_used"]:
del class_details["attributes"][index]
class_details["attributes"] = list(filter(lambda attr: attr["is_used"], class_details["attributes"]))

renderAttribute = ""
class_type = _get_class_type(class_details)
Expand Down

0 comments on commit 2034740

Please sign in to comment.