summaryrefslogtreecommitdiffstatsci
path: root/src/skia-tests/stroke.cpp
diff options
context:
space:
mode:
authorBryce Harrington <b.harrington@samsung.com>2014-05-07 23:38:10 -0700
committerBryce Harrington <b.harrington@samsung.com>2014-05-08 18:50:52 -0700
commit4965e6668b2d682232c5fb9d0afeb06fd988a57c (patch)
treec6f45c4cbbe4ce53cbc761ba33c558d0efcb386a /src/skia-tests/stroke.cpp
parent05391ee19dcfb0edc120dba23c02f644a64dc0b4 (diff)
Excise remaining users of unused points list
Diffstat (limited to 'src/skia-tests/stroke.cpp')
-rw-r--r--src/skia-tests/stroke.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/skia-tests/stroke.cpp b/src/skia-tests/stroke.cpp
index 391041f..783c096 100644
--- a/src/skia-tests/stroke.cpp
+++ b/src/skia-tests/stroke.cpp
@@ -62,30 +62,11 @@ static void drawShape(caskbench_context_t *ctx,double x,double y,kinetics_t *par
case 3:
// Triangle
- ctx->shape_args.numpoints = 3;
- ctx->shape_args.points = (double (*)[2]) malloc(ctx->shape_args.numpoints*2*(sizeof(double)));
- ctx->shape_args.points[0][0] = x;
- ctx->shape_args.points[0][1] = y+2*r;
- ctx->shape_args.points[1][0] = 2*r;
- ctx->shape_args.points[1][1] = 0;
- ctx->shape_args.points[2][0] = -r;
- ctx->shape_args.points[2][1] = -2*r;
skiaShapes[CB_SHAPE_TRIANGLE] (ctx,&ctx->shape_args);
- free (ctx->shape_args.points);
break;
case 4:
// Star
- ctx->shape_args.numpoints = 10;
- ctx->shape_args.points = (double (*)[2]) malloc(ctx->shape_args.numpoints*2*(sizeof(double)));
-
- for (p = 0; p < 10; p++ ) {
- int px = x + 2*r * star_points[p][0]/200.0;
- int py = y + 2*r * star_points[p][1]/200.0;
- ctx->shape_args.points[p][0] = px;
- ctx->shape_args.points[p][1] = py;
- }
skiaShapes[CB_SHAPE_STAR] (ctx,&ctx->shape_args);
- free (ctx->shape_args.points);
break;
default: