From 70039d8c96085001ac59ff28c4bde476c8fd30cf Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Sat, 28 Jul 2018 17:12:35 +1000 Subject: Remove SkFastMin32 SkFastMin32 has been the same as SkMin32 since commit 38bad32cf52 "fold SK_CPU_HAS_CONDITION_INSTR through as always defined" was submitted in July 2013 as per https://chromiumcodereview.appspot.com/21122005 TBR=hcm@google.com The only change to the public API is removing a redundant helper from SkTypes.h Bug: skia: Change-Id: Ic6f7c7dc5612e8b7b1be3923f572ffcc13555d75 Reviewed-on: https://skia-review.googlesource.com/144242 Commit-Queue: Leon Scroggins Reviewed-by: Leon Scroggins --- include/core/SkTypes.h | 7 ------- 1 file changed, 7 deletions(-) (limited to 'include') diff --git a/include/core/SkTypes.h b/include/core/SkTypes.h index 515aaabac5..95ee208ed6 100644 --- a/include/core/SkTypes.h +++ b/include/core/SkTypes.h @@ -207,13 +207,6 @@ template constexpr const T& SkTClamp(const T& x, const T& lo, const return (x < lo) ? lo : SkTMin(x, hi); } -static inline int32_t SkFastMin32(int32_t value, int32_t max) { - if (value > max) { - value = max; - } - return value; -} - /** @return value pinned (clamped) between min and max, inclusively. */ template static constexpr const T& SkTPin(const T& value, const T& min, const T& max) { -- cgit v1.2.3