aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core
diff options
context:
space:
mode:
authorGravatar Ben Wagner <bungeman@google.com>2018-06-20 13:37:35 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-06-20 18:19:17 +0000
commitb70e3b4831398aff696b9e15ad7e8f581db8aa9d (patch)
tree8d7cad48e48db22e3435cb9e973fd85511e8ba4a /include/core
parentcd0a98c0d1c4e75a2d9f1bc67fea6fcccfa0e76a (diff)
Remove SkTSwap.
No longer used. Use swappable instead. Change-Id: I76935f33ac084dbe067c34de7fb332e51a063cb6 Reviewed-on: https://skia-review.googlesource.com/136221 Reviewed-by: Hal Canary <halcanary@google.com> Commit-Queue: Ben Wagner <bungeman@google.com>
Diffstat (limited to 'include/core')
-rw-r--r--include/core/SkTypes.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/include/core/SkTypes.h b/include/core/SkTypes.h
index 9ab72c75e0..395211a237 100644
--- a/include/core/SkTypes.h
+++ b/include/core/SkTypes.h
@@ -170,15 +170,6 @@ static constexpr uint32_t SK_InvalidGenID = 0;
*/
static constexpr uint32_t SK_InvalidUniqueID = 0;
-/** Generic swap function. Classes with efficient swaps should specialize this function to take
- their fast path. This function is used by SkTSort.
-*/
-template <typename T> static inline void SkTSwap(T& a, T& b) {
- T c(std::move(a));
- a = std::move(b);
- b = std::move(c);
-}
-
static inline int32_t SkAbs32(int32_t value) {
SkASSERT(value != SK_NaN32); // The most negative int32_t can't be negated.
if (value < 0) {