Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1547)

Unified Diff: mojo/public/bindings/generators/cpp_templates/struct_destructor.tmpl

Issue 226263002: Mojo: Move mojo/public/bindings to mojo/public/tools/bindings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 %}

Powered by Google App Engine
This is Rietveld 408576698