[Bf-blender-cvs] [f2da98d816e] master: Cleanup: remove unused functions
Jacques Lucke
noreply at git.blender.org
Sun Oct 3 13:44:50 CEST 2021
Commit: f2da98d816e892ff3477bff2e443b37b03403522
Author: Jacques Lucke
Date: Sun Oct 3 13:44:44 2021 +0200
Branches: master
https://developer.blender.org/rBf2da98d816e892ff3477bff2e443b37b03403522
Cleanup: remove unused functions
===================================================================
M source/blender/blenlib/BLI_span.hh
===================================================================
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 */
More information about the Bf-blender-cvs
mailing list