summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Juyung Seo <juyung.seo@samsung.com>2014-01-07 00:08:31 +0900
committerDaniel Juyung Seo <juyung.seo@samsung.com>2014-01-07 00:11:00 +0900
commit0bcc64a162eea143d17abe38559df9c214e740a0 (patch)
tree7fd0b51cd81d0b46933ec72c4e808366b10425ee
parentd095f784474c410970c7e57195bfed2e3a1d09e2 (diff)
3d, flip_page test: Removed dead assignments which were reported by
clang. https://build.enlightenment.org/job/nightly_elm_clang_x86_64/lastSuccessfulBuild/artifact/scan-build/build/2014-01-05-1/report-XJSqtb.html#EndPath https://build.enlightenment.org/job/nightly_elm_clang_x86_64/lastSuccessfulBuild/artifact/scan-build/build/2014-01-05-1/report-XcpYrk.html#EndPath
-rw-r--r--src/bin/test_3d.c1
-rw-r--r--src/bin/test_flip_page.c5
2 files changed, 1 insertions, 5 deletions
diff --git a/src/bin/test_3d.c b/src/bin/test_3d.c
index 92f78cf35..3fa9d8dce 100644
--- a/src/bin/test_3d.c
+++ b/src/bin/test_3d.c
@@ -134,7 +134,6 @@ _cube_pos(Cube *c,
134 evas_map_point_coord_get(m, j, NULL, NULL, &(tz[j])); 134 evas_map_point_coord_get(m, j, NULL, NULL, &(tz[j]));
135 mz[i] = (tz[0] + tz[1] + tz[2] + tz[3]) / 4; 135 mz[i] = (tz[0] + tz[1] + tz[2] + tz[3]) / 4;
136 } 136 }
137 sorted = 0;
138 do 137 do
139 { 138 {
140 sorted = 1; 139 sorted = 1;
diff --git a/src/bin/test_flip_page.c b/src/bin/test_flip_page.c
index 872bb8d6e..46504628a 100644
--- a/src/bin/test_flip_page.c
+++ b/src/bin/test_flip_page.c
@@ -316,7 +316,7 @@ _state_update(State *st)
316 Slice *sl; 316 Slice *sl;
317 double b, minv = 0.0, minva, mgrad; 317 double b, minv = 0.0, minva, mgrad;
318 int gx, gy, gszw, gszh, gw, gh, col, row, nw, nh; 318 int gx, gy, gszw, gszh, gw, gh, col, row, nw, nh;
319 double rho, A, theta, perc, percm, n, rhol, Al, thetal; 319 double rho, A, theta, perc, n, rhol, Al, thetal;
320 Vertex3 *tvo, *tvol; 320 Vertex3 *tvo, *tvol;
321 321
322 st->backflip = 0; 322 st->backflip = 0;
@@ -408,11 +408,8 @@ _state_update(State *st)
408 } 408 }
409 409
410 perc = (double)xx2 / (double)xx1; 410 perc = (double)xx2 / (double)xx1;
411 percm = (double)mx / (double)xx1;
412 if (perc < 0.0) perc = 0.0; 411 if (perc < 0.0) perc = 0.0;
413 else if (perc > 1.0) perc = 1.0; 412 else if (perc > 1.0) perc = 1.0;
414 if (percm < 0.0) percm = 0.0;
415 else if (percm > 1.0) percm = 1.0;
416 413
417 minva = atan(minv) / (M_PI / 2); 414 minva = atan(minv) / (M_PI / 2);
418 if (minva < 0.0) minva = -minva; 415 if (minva < 0.0) minva = -minva;