diff --git a/common/include/physfsx.h b/common/include/physfsx.h index c29bb6e40..c619e3483 100644 --- a/common/include/physfsx.h +++ b/common/include/physfsx.h @@ -87,16 +87,6 @@ static inline typename tt::enable_if::value, PHYSFS_sint64>: return PHYSFS_read(file, v, S, C); } -template -__attribute_always_inline() -static inline typename tt::enable_if::value, PHYSFS_sint64>::type PHYSFSX_check_read(PHYSFS_file *file, V &v, PHYSFS_uint32 S, PHYSFS_uint32 C) -{ - typedef typename tt::remove_extent::type V0; - static_assert(tt::is_pod::value, "C array of non-POD elements read"); - DXX_PHYSFS_CHECK_READ_SIZE_ARRAY_SIZE(S, C); - return PHYSFSX_check_read(file, &v[0], S, C); -} - template __attribute_always_inline() static inline PHYSFS_sint64 PHYSFSX_check_read(PHYSFS_file *file, array &v, PHYSFS_uint32 S, PHYSFS_uint32 C) @@ -132,16 +122,6 @@ static inline typename tt::enable_if::value, PHYSFS_sint64>: return PHYSFS_write(file, v, S, C); } -template -__attribute_always_inline() -static inline typename tt::enable_if::value, PHYSFS_sint64>::type PHYSFSX_check_write(PHYSFS_file *file, const V (&v)[N], PHYSFS_uint32 S, PHYSFS_uint32 C) -{ - typedef typename tt::remove_extent::type V0; - static_assert(tt::is_pod::value, "C array of non-POD elements written"); - DXX_PHYSFS_CHECK_WRITE_CONSTANTS(S,C); - return PHYSFSX_check_write(file, &v[0], S, C); -} - template __attribute_always_inline() static inline PHYSFS_sint64 PHYSFSX_check_write(PHYSFS_file *file, const array &v, PHYSFS_uint32 S, PHYSFS_uint32 C)