diff options
author | Jacques Lucke <jacques@blender.org> | 2021-10-03 14:44:44 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-10-03 14:44:44 +0300 |
commit | f2da98d816e892ff3477bff2e443b37b03403522 (patch) | |
tree | a07b78f427e2bb2c26e9e556b6328deae72e3655 /source/blender/blenlib/BLI_span.hh | |
parent | d3afe0c1265c9ebb53053de68f176b30f0132281 (diff) |
Cleanup: remove unused functions
Diffstat (limited to 'source/blender/blenlib/BLI_span.hh')
-rw-r--r-- | source/blender/blenlib/BLI_span.hh | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/source/blender/blenlib/BLI_span.hh b/source/blender/blenlib/BLI_span.hh index 29098fd79ce..5b7981e0302 100644 --- a/source/blender/blenlib/BLI_span.hh +++ b/source/blender/blenlib/BLI_span.hh @@ -729,29 +729,4 @@ template<typename T> class MutableSpan { } }; -/** - * Utilities to check that arrays have the same size in debug builds. - */ -template<typename T1, typename T2> constexpr void assert_same_size(const T1 &v1, const T2 &v2) -{ - UNUSED_VARS_NDEBUG(v1, v2); -#ifdef DEBUG - int64_t size = v1.size(); - BLI_assert(size == v1.size()); - BLI_assert(size == v2.size()); -#endif -} - -template<typename T1, typename T2, typename T3> -constexpr void assert_same_size(const T1 &v1, const T2 &v2, const T3 &v3) -{ - UNUSED_VARS_NDEBUG(v1, v2, v3); -#ifdef DEBUG - int64_t size = v1.size(); - BLI_assert(size == v1.size()); - BLI_assert(size == v2.size()); - BLI_assert(size == v3.size()); -#endif -} - } /* namespace blender */ |