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