diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkTemplates.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/include/core/SkTemplates.h b/include/core/SkTemplates.h index a06c856a32..bab1ceaa91 100644 --- a/include/core/SkTemplates.h +++ b/include/core/SkTemplates.h @@ -64,13 +64,6 @@ template <typename D, typename S> static D* SkTAddOffset(S* ptr, size_t byteOffs ); } -/** Returns true if the source value 's' will fit in the destination type 'D'. */ -template <typename D, typename S> inline bool SkTFitsIn(S s) { - // the cast to <S> is just to restore the signedness of S, to avoid - // sign-unsigned comparison warnings. - return static_cast<S>(static_cast<D>(s)) == s; -} - /** \class SkAutoTCallVProc Call a function when this goes out of scope. The template uses two |