| Index: mojo/public/cpp/bindings/lib/serialization_util.h
|
| diff --git a/mojo/public/cpp/bindings/lib/serialization_util.h b/mojo/public/cpp/bindings/lib/serialization_util.h
|
| index 8e926cc5e832803781cf6b8e9a026e4be8ced18f..1b362d17d83f369ce911bd3a19806a289caaf07c 100644
|
| --- a/mojo/public/cpp/bindings/lib/serialization_util.h
|
| +++ b/mojo/public/cpp/bindings/lib/serialization_util.h
|
| @@ -102,20 +102,6 @@ inline void InterfaceDataToPointer(Interface_Data* input,
|
| input->version));
|
| }
|
|
|
| -// TODO(yzshen): Unify StructTraits::Read*() methods and remove
|
| -// HasReadFromDataViewMethod.
|
| -template <typename T>
|
| -struct HasReadFromDataViewMethod {
|
| - template <typename U>
|
| - static char Test(decltype(U::ReadFromDataView)*);
|
| - template <typename U>
|
| - static int Test(...);
|
| - static const bool value = sizeof(Test<T>(0)) == sizeof(char);
|
| -
|
| - private:
|
| - EnsureTypeIsComplete<T> check_t_;
|
| -};
|
| -
|
| template <typename T>
|
| struct HasIsNullMethod {
|
| template <typename U>
|
|
|