Remove SK_SUPPORT_DEPRECATED_SCALARROUND.
authorscroggo <scroggo@google.com>
Tue, 2 Dec 2014 20:30:38 +0000 (12:30 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 2 Dec 2014 20:30:38 +0000 (12:30 -0800)
Our clients no longer require it.

Review URL: https://codereview.chromium.org/772933002

include/core/SkScalar.h

index feea687..e0490e2 100644 (file)
@@ -11,8 +11,6 @@
 #include "SkFixed.h"
 #include "SkFloatingPoint.h"
 
-//#define SK_SUPPORT_DEPRECATED_SCALARROUND
-
 // TODO: move this sort of check into SkPostConfig.h
 #define SK_SCALAR_IS_DOUBLE 0
 #undef SK_SCALAR_IS_FLOAT
@@ -183,13 +181,6 @@ static inline bool SkScalarIsInt(SkScalar x) {
     return x == (SkScalar)(int)x;
 }
 
-// DEPRECATED : use ToInt or ToScalar variant
-#ifdef SK_SUPPORT_DEPRECATED_SCALARROUND
-#   define SkScalarFloor(x)    SkScalarFloorToInt(x)
-#   define SkScalarCeil(x)     SkScalarCeilToInt(x)
-#   define SkScalarRound(x)    SkScalarRoundToInt(x)
-#endif
-
 /**
  *  Returns -1 || 0 || 1 depending on the sign of value:
  *  -1 if x < 0