aboutsummaryrefslogtreecommitdiff
path: root/codegen/lib/code/utils.py
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2024-05-23 03:29:37 +0000
committermat <git@matdoes.dev>2024-05-23 03:29:37 +0000
commitc7f9dc4b3d0ac7a0d85a087874c192a788b383b9 (patch)
treec7f5a1b85148d4d153706ad018da0c27790079ce /codegen/lib/code/utils.py
parent22baedb24b0d6b2b9148b3e0050d9bb36a4a54ab (diff)
downloadazalea-drasl-c7f9dc4b3d0ac7a0d85a087874c192a788b383b9.tar.xz
remove all references to clean_property_name
Diffstat (limited to 'codegen/lib/code/utils.py')
-rwxr-xr-xcodegen/lib/code/utils.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/codegen/lib/code/utils.py b/codegen/lib/code/utils.py
index 71b7d7d8..29adc247 100755
--- a/codegen/lib/code/utils.py
+++ b/codegen/lib/code/utils.py
@@ -173,16 +173,3 @@ def write_packet_file(state, packet_name_snake_case, code):
def fmt():
os.system(f'cd {get_dir_location("..")} && cargo fmt')
-
-
-def clean_property_name(property_name):
- # if the name ends with _<number>, remove that part
- # ending = property_name.split('_')[-1]
- # if ending.isdigit():
- # property_name = property_name[:-(len(ending) + 1)]
-
- # `type` is a reserved keyword, so we use kind instead ¯\_(ツ)_/¯
- # if property_name == 'type':
- # property_name = 'kind'
-
- return property_name