diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-10-21 16:41:00 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-10-21 16:41:00 +0000 |
commit | 4b7d6730898abc9e02d1e12c2fd732945f4c1ab4 (patch) | |
tree | b8f627aef9c4e8f41431e04bd866738c0748567b /bench/RTreeBench.cpp | |
parent | f642f8cf90c8fd4111094026a1a9e9fdc92be9c3 (diff) |
More clang warning fixes.
Mostly unused functions and variables removed.
BUG=None
TEST=ninja -C out/Debug most
ninja -C out/Release most
R=bsalomon@google.com, caryclark@google.com, robertphillips@google.com
Author: tfarina@chromium.org
Review URL: https://codereview.chromium.org/27933002
git-svn-id: http://skia.googlecode.com/svn/trunk@11884 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'bench/RTreeBench.cpp')
-rw-r--r-- | bench/RTreeBench.cpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/bench/RTreeBench.cpp b/bench/RTreeBench.cpp index 5b69b57ca2..2d86c2d42a 100644 --- a/bench/RTreeBench.cpp +++ b/bench/RTreeBench.cpp @@ -147,21 +147,11 @@ private: typedef SkBenchmark INHERITED; }; -static inline SkIRect make_simple_rect(SkRandom&, int index, int numRects) { - SkIRect out = {0, 0, GENERATE_EXTENTS, GENERATE_EXTENTS}; - return out; -} - static inline SkIRect make_concentric_rects_increasing(SkRandom&, int index, int numRects) { SkIRect out = {0, 0, index + 1, index + 1}; return out; } -static inline SkIRect make_concentric_rects_decreasing(SkRandom&, int index, int numRects) { - SkIRect out = {0, 0, numRects - index, numRects - index}; - return out; -} - static inline SkIRect make_XYordered_rects(SkRandom& rand, int index, int numRects) { SkIRect out; out.fLeft = index % GRID_WIDTH; @@ -179,15 +169,6 @@ static inline SkIRect make_YXordered_rects(SkRandom& rand, int index, int numRec return out; } -static inline SkIRect make_point_rects(SkRandom& rand, int index, int numRects) { - SkIRect out; - out.fLeft = rand.nextU() % GENERATE_EXTENTS; - out.fTop = rand.nextU() % GENERATE_EXTENTS; - out.fRight = out.fLeft + (GENERATE_EXTENTS / 200); - out.fBottom = out.fTop + (GENERATE_EXTENTS / 200); - return out; -} - static inline SkIRect make_random_rects(SkRandom& rand, int index, int numRects) { SkIRect out; out.fLeft = rand.nextS() % GENERATE_EXTENTS; @@ -197,15 +178,6 @@ static inline SkIRect make_random_rects(SkRandom& rand, int index, int numRects) return out; } -static inline SkIRect make_large_rects(SkRandom& rand, int index, int numRects) { - SkIRect out; - out.fLeft = rand.nextU() % GENERATE_EXTENTS; - out.fTop = rand.nextU() % GENERATE_EXTENTS; - out.fRight = out.fLeft + (GENERATE_EXTENTS / 3); - out.fBottom = out.fTop + (GENERATE_EXTENTS / 3); - return out; -} - /////////////////////////////////////////////////////////////////////////////// DEF_BENCH( |