Index: mojo/public/tools/bindings/generators/dart_templates/enum_definition.tmpl |
diff --git a/mojo/public/tools/bindings/generators/dart_templates/enum_definition.tmpl b/mojo/public/tools/bindings/generators/dart_templates/enum_definition.tmpl |
deleted file mode 100644 |
index 524b9983ae529b3df87893cd2be192bb1a8879e5..0000000000000000000000000000000000000000 |
--- a/mojo/public/tools/bindings/generators/dart_templates/enum_definition.tmpl |
+++ /dev/null |
@@ -1,12 +0,0 @@ |
-{%- macro enum_def(prefix, enum) -%} |
-{%- set prev_enum = 0 %} |
-{%- for field in enum.fields %} |
-{%- if field.value %} |
-{{prefix}}final int {{enum.name}}_{{field.name}} = {{field.value|expression_to_text}}; |
-{%- elif loop.first %} |
-{{prefix}}final int {{enum.name}}_{{field.name}} = 0; |
-{%- else %} |
-{{prefix}}final int {{enum.name}}_{{field.name}} = {{enum.name}}_{{enum.fields[loop.index0 - 1].name}} + 1; |
-{%- endif %} |
-{%- endfor %} |
-{%- endmacro %} |