From 4b7d6730898abc9e02d1e12c2fd732945f4c1ab4 Mon Sep 17 00:00:00 2001 From: "commit-bot@chromium.org" Date: Mon, 21 Oct 2013 16:41:00 +0000 Subject: 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 --- bench/RTreeBench.cpp | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'bench/RTreeBench.cpp') 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( -- cgit v1.2.3