[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:26 +0000 (UTC)
commit 1cacb008d647b34af5811511adaa4404dcc1313e
Author: Hans Breuer <hans breuer org>
Date: Wed Dec 30 14:09:20 2009 +0100
[scan-build] Dead assignment
Value stored to 'endpoints' is never read
objects/SADT/annotation.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/objects/SADT/annotation.c b/objects/SADT/annotation.c
index a30e147..ee25943 100644
--- a/objects/SADT/annotation.c
+++ b/objects/SADT/annotation.c
@@ -277,7 +277,6 @@ annotation_move(Annotation *annotation, Point *to)
static void
annotation_draw(Annotation *annotation, DiaRenderer *renderer)
{
- Point *endpoints;
Point vect,rvect,v1,v2;
Point pts[4];
real vlen;
@@ -286,8 +285,6 @@ annotation_draw(Annotation *annotation, DiaRenderer *renderer)
assert(annotation != NULL);
assert(renderer != NULL);
- endpoints = &annotation->connection.endpoints[0];
-
renderer_ops->set_linewidth(renderer, ANNOTATION_LINE_WIDTH);
renderer_ops->set_linestyle(renderer, LINESTYLE_SOLID);
renderer_ops->set_linecaps(renderer, LINECAPS_BUTT);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]