Index: mojo/public/bindings/lib/bindings_serialization.cc |
diff --git a/mojo/public/bindings/lib/bindings_serialization.cc b/mojo/public/bindings/lib/bindings_serialization.cc |
index 45816564d884647bec70dfb0e9579bcf2418aa29..919a4ede52cd5d9e6249fe79af4e16930fdd645d 100644 |
--- a/mojo/public/bindings/lib/bindings_serialization.cc |
+++ b/mojo/public/bindings/lib/bindings_serialization.cc |
@@ -6,6 +6,8 @@ |
#include <assert.h> |
+#include "mojo/public/bindings/lib/bindings_internal.h" |
+ |
namespace mojo { |
namespace internal { |
@@ -67,26 +69,5 @@ bool DecodeHandle(Handle* handle, std::vector<Handle>* handles) { |
return true; |
} |
-// static |
-void ArrayHelper<Handle>::EncodePointersAndHandles( |
- const ArrayHeader* header, |
- ElementType* elements, |
- std::vector<Handle>* handles) { |
- for (uint32_t i = 0; i < header->num_elements; ++i) |
- EncodeHandle(&elements[i], handles); |
-} |
- |
-// static |
-bool ArrayHelper<Handle>::DecodePointersAndHandles( |
- const ArrayHeader* header, |
- ElementType* elements, |
- Message* message) { |
- for (uint32_t i = 0; i < header->num_elements; ++i) { |
- if (!DecodeHandle(&elements[i], &message->handles)) |
- return false; |
- } |
- return true; |
-} |
- |
} // namespace internal |
} // namespace mojo |