[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: Tue, 29 Dec 2009 19:13:22 +0000 (UTC)
commit 57da8ab46d2094f3dd990c3db37db8d254661360
Author: Hans Breuer <hans breuer org>
Date: Tue Dec 29 12:56:08 2009 +0100
[scan-build] Dead assignment
Value stored to 'angle' is never read,
Value stored to 'add_len' is never read
lib/arrows.c | 8 --------
1 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/lib/arrows.c b/lib/arrows.c
index b0dc3a7..83969fc 100644
--- a/lib/arrows.c
+++ b/lib/arrows.c
@@ -254,7 +254,6 @@ calculate_arrow_point(const Arrow *arrow, const Point *to, const Point *from,
case ARROW_INTEGRAL_SYMBOL:
*move_line = *to;
point_sub(move_line, from);
- add_len = point_len(move_line);
point_normalize(move_line);
point_scale(move_line, arrow->length / 2);
return;
@@ -1013,13 +1012,6 @@ calculate_halfhead(Point *poly, const Point *to, const Point *from,
Point delta;
Point orth_delta;
real len;
- real angle;
-
- if (width > 0.0000001) {
- angle = atan(length/(width/2));
- } else {
- angle = 0;
- }
delta = *to;
point_sub(&delta, from);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]