[dia] [scan-build] Dead assignment
- From: Hans Breuer <hans src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [dia] [scan-build] Dead assignment
- Date: Sat, 2 Jan 2010 14:45:41 +0000 (UTC)
commit 22d0e71517dd13c3c128404cdb77ed0baaaea67b
Author: Hans Breuer <hans breuer org>
Date: Wed Dec 30 14:41:27 2009 +0100
[scan-build] Dead assignment
Removal of a bunch of pointless initializations
objects/custom/custom_object.c | 8 --------
1 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/objects/custom/custom_object.c b/objects/custom/custom_object.c
index a1cdad9..27fe42d 100644
--- a/objects/custom/custom_object.c
+++ b/objects/custom/custom_object.c
@@ -436,12 +436,6 @@ transform_subshape_coord(Custom *custom, GraphicElementSubShape* subshape,
scale = custom->subscale * subshape->default_scale;
- cx = 0.0;
- cy = 0.0;
-
- width = 0.0;
- height = 0.0;
-
xoffs = custom->xoffs;
yoffs = custom->yoffs;
@@ -492,14 +486,12 @@ transform_subshape_coord(Custom *custom, GraphicElementSubShape* subshape,
/* step #5: handle flip_h/flip_v */
if (custom->flip_h) {
out->x = -out->x + width;
- cx = -cx + width;
xoffs -= (new_bounds.right - new_bounds.left);
custom->xscale = -custom->xscale; /* undo the damage we've done above */
}
if (custom->flip_v) {
out->y = -out->y + height;
- cy = -cy + height;
yoffs -= (new_bounds.bottom - new_bounds.top);
custom->yscale = -custom->yscale; /* undo the damage we've done above */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]