diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkTypes.h | 9 |
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) { |