diff options
author | sugoi@google.com <sugoi@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-03-12 14:36:57 +0000 |
---|---|---|
committer | sugoi@google.com <sugoi@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-03-12 14:36:57 +0000 |
commit | 93c7ee34dc5c8f6bfad65809f4b39f8d00d7f0d4 (patch) | |
tree | d4352361bd821b020d856cc720feb3235f8d9203 /src/core/SkScan_Hairline.cpp | |
parent | a041b954ffd318ebbbee9aab1c11f8c563954a1f (diff) |
Removed unused parameters
I removed unused parameters wherever it was trivial to do so.
Review URL: https://codereview.chromium.org/12772003
git-svn-id: http://skia.googlecode.com/svn/trunk@8103 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkScan_Hairline.cpp')
-rw-r--r-- | src/core/SkScan_Hairline.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/core/SkScan_Hairline.cpp b/src/core/SkScan_Hairline.cpp index ada0078e3c..3245355a5d 100644 --- a/src/core/SkScan_Hairline.cpp +++ b/src/core/SkScan_Hairline.cpp @@ -193,10 +193,6 @@ void SkScan::HairRect(const SkRect& rect, const SkRasterClip& clip, #include "SkPath.h" #include "SkGeometry.h" -static bool quad_too_curvy(const SkPoint pts[3]) { - return true; -} - static int compute_int_quad_dist(const SkPoint pts[3]) { // compute the vector between the control point ([1]) and the middle of the // line connecting the start and end ([0] and [2]) @@ -220,7 +216,7 @@ static void hairquad(const SkPoint pts[3], const SkRegion* clip, SkBlitter* blit void (*lineproc)(const SkPoint&, const SkPoint&, const SkRegion* clip, SkBlitter*)) { #if 1 - if (level > 0 && quad_too_curvy(pts)) + if (level > 0) { SkPoint tmp[5]; @@ -247,15 +243,10 @@ static void hairquad(const SkPoint pts[3], const SkRegion* clip, SkBlitter* blit #endif } -static bool cubic_too_curvy(const SkPoint pts[4]) -{ - return true; -} - static void haircubic(const SkPoint pts[4], const SkRegion* clip, SkBlitter* blitter, int level, void (*lineproc)(const SkPoint&, const SkPoint&, const SkRegion*, SkBlitter*)) { - if (level > 0 && cubic_too_curvy(pts)) + if (level > 0) { SkPoint tmp[7]; |