[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:06 +0000 (UTC)
commit 3a1e17f41dffc3585420c475ef79c35d52895de4
Author: Hans Breuer <hans breuer org>
Date: Tue Dec 29 12:52:52 2009 +0100
[scan-build] Dead assignment
remove unused elem variable
objects/KAOS/other.c | 3 ---
objects/Misc/analog_clock.c | 3 ---
2 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/objects/KAOS/other.c b/objects/KAOS/other.c
index c9294e6..de7d020 100644
--- a/objects/KAOS/other.c
+++ b/objects/KAOS/other.c
@@ -347,14 +347,11 @@ other_draw(Other *other, DiaRenderer *renderer)
{
DiaRendererClass *renderer_ops = DIA_RENDERER_GET_CLASS (renderer);
Point pl[6];
- Element *elem;
/* some asserts */
assert(other != NULL);
assert(renderer != NULL);
- elem = &other->element;
-
renderer_ops->set_linestyle(renderer, LINESTYLE_SOLID);
renderer_ops->set_linejoin(renderer, LINEJOIN_MITER);
diff --git a/objects/Misc/analog_clock.c b/objects/Misc/analog_clock.c
index b344004..27284a9 100644
--- a/objects/Misc/analog_clock.c
+++ b/objects/Misc/analog_clock.c
@@ -317,13 +317,10 @@ static void
analog_clock_draw(Analog_Clock *analog_clock, DiaRenderer *renderer)
{
DiaRendererClass *renderer_ops = DIA_RENDERER_GET_CLASS (renderer);
- Element *elem;
g_assert(analog_clock != NULL);
g_assert(renderer != NULL);
- elem = &analog_clock->element;
-
renderer_ops->set_linejoin(renderer, LINEJOIN_MITER);
renderer_ops->set_linestyle(renderer, LINESTYLE_SOLID);
renderer_ops->set_linewidth(renderer, analog_clock->border_line_width);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]