aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/PathCoverageTest.cpp
diff options
context:
space:
mode:
authorGravatar sugoi@google.com <sugoi@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-02-27 19:17:41 +0000
committerGravatar sugoi@google.com <sugoi@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-02-27 19:17:41 +0000
commit54f0d1b7113cb0dc184e522539aab1030a28a421 (patch)
tree034f4823f8b9ed4ca84d28cbaa08de582edea4c5 /tests/PathCoverageTest.cpp
parent4e0d96b6558f0360993e3ecbe0975017a195d4f2 (diff)
Tests : Unused parameters cleanup
I removed unused parameters in the tests wherever it was trivial to do so. I'm trying to get the easy ones out of the way before we get into more involved discussions around this. Review URL: https://codereview.appspot.com/7394055 git-svn-id: http://skia.googlecode.com/svn/trunk@7891 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/PathCoverageTest.cpp')
-rw-r--r--tests/PathCoverageTest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/PathCoverageTest.cpp b/tests/PathCoverageTest.cpp
index 87ec908558..97708bbc90 100644
--- a/tests/PathCoverageTest.cpp
+++ b/tests/PathCoverageTest.cpp
@@ -66,7 +66,7 @@ static inline uint32_t compute_pointCount(SkScalar d, SkScalar tol) {
}
}
-static uint32_t quadraticPointCount_EE(const SkPoint points[], SkScalar tol) {
+static uint32_t quadraticPointCount_EE(const SkPoint points[]) {
int distance = estimate_distance(points);
return estimate_pointCount(distance);
}
@@ -76,7 +76,7 @@ static uint32_t quadraticPointCount_EC(const SkPoint points[], SkScalar tol) {
return compute_pointCount(SkIntToScalar(distance), tol);
}
-static uint32_t quadraticPointCount_CE(const SkPoint points[], SkScalar tol) {
+static uint32_t quadraticPointCount_CE(const SkPoint points[]) {
SkScalar distance = compute_distance(points);
return estimate_pointCount(SkScalarRound(distance));
}
@@ -122,13 +122,13 @@ static bool one_d_pe(const int* array, const unsigned int count,
uint32_t computedCount =
quadraticPointCount_CC(path, SkIntToScalar(1));
uint32_t estimatedCount =
- quadraticPointCount_EE(path, SkIntToScalar(1));
+ quadraticPointCount_EE(path);
if (false) { // avoid bit rot, suppress warning
computedCount =
quadraticPointCount_EC(path, SkIntToScalar(1));
estimatedCount =
- quadraticPointCount_CE(path, SkIntToScalar(1));
+ quadraticPointCount_CE(path);
}
// Allow estimated to be high by a factor of two, but no less than
// the computed value.