Index: mojo/public/bindings/generators/cpp_templates/struct_declaration.tmpl |
diff --git a/mojo/public/bindings/generators/cpp_templates/struct_declaration.tmpl b/mojo/public/bindings/generators/cpp_templates/struct_declaration.tmpl |
deleted file mode 100644 |
index 701ad333f1bf9072b8dfdce25f83336d749c87ea..0000000000000000000000000000000000000000 |
--- a/mojo/public/bindings/generators/cpp_templates/struct_declaration.tmpl |
+++ /dev/null |
@@ -1,30 +0,0 @@ |
-{%- import "struct_macros.tmpl" as struct_macros %} |
-{%- set class_name = struct.name ~ "_Data" -%} |
- |
-class {{class_name}} { |
- public: |
- typedef {{struct.name}} Wrapper; |
- |
- static {{class_name}}* New(mojo::Buffer* buf, mojo::Buffer::Destructor dtor = NULL); |
- |
-{#--- Setters -#} |
-{{ struct_macros.setters(struct) }} |
- |
-{#--- Getters -#} |
-{{ struct_macros.getters(struct) }} |
- |
- size_t ComputeSize() const; |
- {{class_name}}* Clone(mojo::Buffer* buf) const; |
- void CloseHandles(); |
- void EncodePointersAndHandles(std::vector<mojo::Handle>* handles); |
- bool DecodePointersAndHandles(mojo::Message* message); |
- |
- private: |
- {{class_name}}(); |
- ~{{class_name}}(); // NOT IMPLEMENTED |
- |
- mojo::internal::StructHeader _header_; |
-{{ struct_macros.fields(struct) }} |
-}; |
-MOJO_COMPILE_ASSERT(sizeof({{class_name}}) == {{struct.packed|struct_size}}, |
- bad_sizeof_{{class_name}}); |