diff options
Diffstat (limited to 'codegen/lib/code/utils.py')
| -rwxr-xr-x | codegen/lib/code/utils.py | 13 |
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 |
