aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-07-12 18:22:49 +0000
committerGravatar bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-07-12 18:22:49 +0000
commitf5cc5b140c1c00c536e02b5cfbe158bb2d5c2c15 (patch)
tree88d3f03cfc0a6b015f574000fbe949c21d5dcb0f /include
parent6fb77569596ad3e9419e9450db959949cc37576a (diff)
R=mtklein@google.com
Review URL: https://codereview.chromium.org/18503009 git-svn-id: http://skia.googlecode.com/svn/trunk@10050 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r--include/core/SkTemplates.h7
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