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>
This commit is contained in:
Ben Wagner 2018-06-20 13:37:35 -04:00 committed by Skia Commit-Bot
parent cd0a98c0d1
commit b70e3b4831

View File

@ -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) {