move header
authorreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 15 Apr 2011 15:31:03 +0000 (15:31 +0000)
committerreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 15 Apr 2011 15:31:03 +0000 (15:31 +0000)
fix warning in release build

git-svn-id: http://skia.googlecode.com/svn/trunk@1136 2bbb7eff-a529-9590-31e7-b0007b416f81

include/core/SkClampRange.h [moved from src/core/SkClampRange.h with 100% similarity]
src/core/SkClampRange.cpp

index 9f0b226..222b8a4 100644 (file)
@@ -102,6 +102,7 @@ void SkClampRange::init(SkFixed fx, SkFixed dx, int count, int v0, int v1) {
 ////////////////////////////
 #include "SkRandom.h"
 
+#ifdef SK_DEBUG
 static bool in_range(int x, int target, int slop) {
     SkASSERT(slop >= 0);
     return SkAbs32(x - target) <= slop;
@@ -171,4 +172,7 @@ void SkClampRange::UnitTest() {
         test_range(fx, dx, count);
     }
 }
+#else
+void SkClampRange::UnitTest() {}
+#endif