Blob Blame History Raw
From b1aff306279be7d7cf5adcf12e3c6a14e755fe1c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <petr.pisar@atlas.cz>
Date: Thu, 10 Feb 2011 19:53:54 +0100
Subject: [PATCH] Remove set but unread variable

GCC 4.6 started to warn for it.
---
 src/completition.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/completition.c b/src/completition.c
index ab3f094..e6c2c83 100644
--- a/src/completition.c
+++ b/src/completition.c
@@ -80,15 +80,14 @@ static char *shi_msgid_generator(const char *text_locale, int state) {
 /* Generates possible document ID completions
  * @text is partial user input word
  * @state is 0 for first completion attempt, non-zero otherwise
- * @return next suggested complete word or NULL if no possibility */
+ * @return next suggested complete word or NULL if no possibility
+ * TODO: Implement match on string representation */
 static char *shi_docid_generator(const char *text, int state) {
-    static size_t text_length;
     static struct isds_list *item;
     static int order;
     char *document_id;
 
     if (!state) {
-        text_length = strlen(text);
         if (message)
             item = message->documents;
         else
-- 
1.7.4