From 5b12c236cf68a182fb8075c7ec0797c4c64fd60c Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sun, 3 Apr 2011 21:54:58 +0200 Subject: Remove dead assignments spotted by clang-analyzer. Signed-off-by: Lukas Fleischer --- src/todo.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/todo.c') diff --git a/src/todo.c b/src/todo.c index 8b03fce..8d7a4d5 100644 --- a/src/todo.c +++ b/src/todo.c @@ -198,10 +198,9 @@ static void todo_delete_note_bynum (unsigned num) { unsigned n; - struct todo *i, **iptr; + struct todo *i; n = 0; - iptr = &todolist; for (i = todolist; i != 0; i = i->next) { if (n == num) @@ -211,7 +210,6 @@ todo_delete_note_bynum (unsigned num) erase_note (&i->note, ERASE_FORCE_ONLY_NOTE); return; } - iptr = &i->next; n++; } /* NOTREACHED */ -- cgit v1.2.3-54-g00ecf