Index: mojo/public/bindings/generators/cpp_templates/struct_destructor.tmpl |
diff --git a/mojo/public/bindings/generators/cpp_templates/struct_destructor.tmpl b/mojo/public/bindings/generators/cpp_templates/struct_destructor.tmpl |
deleted file mode 100644 |
index 78dd5e1ac4886015f038db7ea6900295ad9ecafb..0000000000000000000000000000000000000000 |
--- a/mojo/public/bindings/generators/cpp_templates/struct_destructor.tmpl |
+++ /dev/null |
@@ -1,11 +0,0 @@ |
-{%- set class_name = struct.name ~ "_Data" %} |
-{%- if struct|is_struct_with_handles %} |
-static void {{class_name}}_Destructor(void* address) { |
- {{class_name}}* data = static_cast<{{class_name}}*>(address); |
-{%- for pf in struct.packed.packed_fields %} |
-{%- if pf.field.kind|is_handle_kind %} |
- (void) mojo::MakePassable(data->{{pf.field.name}}()).Pass(); |
-{%- endif %} |
-{%- endfor %} |
-} |
-{%- endif %} |