diff options
author | 2014-03-12 03:46:48 +0000 | |
---|---|---|
committer | 2014-03-12 03:46:48 +0000 | |
commit | e60ae2eca3ca7142b6f1fc2361986756bcf79b81 (patch) | |
tree | 2eab24ea9166e965c3ef05682449117dabab135b /include/core/SkTemplates.h | |
parent | 3258a5348beb721ee47fbe8928d78b0bf0fed5bd (diff) |
Revert 13757.
git-svn-id: http://skia.googlecode.com/svn/trunk@13758 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkTemplates.h')
-rw-r--r-- | include/core/SkTemplates.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/include/core/SkTemplates.h b/include/core/SkTemplates.h index 5d2edd6e6d..a3a846600a 100644 --- a/include/core/SkTemplates.h +++ b/include/core/SkTemplates.h @@ -11,8 +11,6 @@ #define SkTemplates_DEFINED #include "SkTypes.h" -#include <climits> -#include <limits> #include <new> /** \file SkTemplates.h @@ -66,14 +64,6 @@ template <typename D, typename S> static D* SkTAddOffset(S* ptr, size_t byteOffs ); } -/** SkTSetBit<N, T>::value is a T with the Nth bit set. */ -template<unsigned N, typename T = uintmax_t> struct SkTSetBit { - static const T value = static_cast<T>(1) << N; - SK_COMPILE_ASSERT(sizeof(T)*CHAR_BIT > N, SkTSetBit_N_too_large); - SK_COMPILE_ASSERT(std::numeric_limits<T>::is_integer, SkTSetBit_T_must_be_integer); - SK_COMPILE_ASSERT(!std::numeric_limits<T>::is_signed, SkTSetBit_T_must_be_unsigned); -}; - /** \class SkAutoTCallVProc Call a function when this goes out of scope. The template uses two |