diff --git a/cast.hpp b/cast.hpp index 89ca2cb6..af04b038 100644 --- a/cast.hpp +++ b/cast.hpp @@ -11,7 +11,6 @@ #include "concepts.hpp" #include "debug/assert.hpp" -#include "debug/validate.hpp" #include "platform.hpp" #include @@ -213,19 +212,6 @@ namespace cruft::cast { } - /////////////////////////////////////////////////////////////////////////// - /// Cast from SrcT to DstT, performing sanity checks on the src and dst - /// values before returning the result. - template - DstT sanity (SrcT src) - { - cruft::debug::sanity (src); - DstT dst = static_cast (src); - cruft::debug::sanity (dst); - return dst; - } - - /// Convert from SrcT to DstT by reinterpreting the bits that make up SrcT. /// Effectively a reinterpret_cast of SrcT but without the undefined /// behaviour.