summaryrefslogtreecommitdiffstatsci
path: root/src/cairo-tests/clip.cpp
diff options
context:
space:
mode:
authorBryce Harrington <b.harrington@samsung.com>2014-05-29 17:30:02 -0700
committerBryce Harrington <b.harrington@samsung.com>2014-05-29 18:37:47 -0700
commita60536ac868d22562a62ee6f4026dd6cc5df4daf (patch)
tree7e172a175c1fda2164ec82bfaaef2e375378c1ed /src/cairo-tests/clip.cpp
parent0713e634dc97f23796092095a4046a7c6db328e3 (diff)
Cleanup some unused or uninitialized variables
Diffstat (limited to 'src/cairo-tests/clip.cpp')
-rw-r--r--src/cairo-tests/clip.cpp20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/cairo-tests/clip.cpp b/src/cairo-tests/clip.cpp
index 26d0f62..ae641cc 100644
--- a/src/cairo-tests/clip.cpp
+++ b/src/cairo-tests/clip.cpp
@@ -39,7 +39,6 @@ ca_teardown_clip(void)
void drawShape(caskbench_context_t *ctx,double x,double y,double clipr=0,bool isClip=false)
{
- cairo_t *cr = ctx->cairo_cr;
int i, r, p;
shape_type_t shape;
r = 0.9 * element_spacing /2;
@@ -92,18 +91,17 @@ ca_test_clip(caskbench_context_t *ctx)
int i,j ;
for (i = 0; i < num_particles; i++)
kinetics_init (&particles[i]);
- delta = 0;
- for (j=0;j<num_particles;j++){
- cairo_set_source_rgb (cr, 1, 1, 1);
- cairo_rectangle (cr, 0, 0, ctx->canvas_width ,ctx->canvas_height);
- cairo_fill (cr);
+ for (j=0;j<num_particles;j++){
+ cairo_set_source_rgb (cr, 1, 1, 1);
+ cairo_rectangle (cr, 0, 0, ctx->canvas_width ,ctx->canvas_height);
+ cairo_fill (cr);
- for (i = 0; i < num_particles; i++) {
- kinetics_update(&particles[i], 0.1);
- drawClip(ctx,&particles[i]);
- }
- }
+ for (i = 0; i < num_particles; i++) {
+ kinetics_update(&particles[i], 0.1);
+ drawClip(ctx,&particles[i]);
+ }
+ }
}
else