aboutsummaryrefslogtreecommitdiff
path: root/database.cc
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2009-10-25 11:05:16 -0700
committerCarl Worth <cworth@cworth.org>2009-10-25 11:05:16 -0700
commitec77f6b50cb460dc8c376eeee045a25ed390c337 (patch)
treea3ae7d43b5a9d213484cde834f49a4180c0686b4 /database.cc
parent6b20dbff86c2be180496b8ed762b2b68b10a772a (diff)
link_message: Remove dead code.
We dropped the THREAD_ID value from the database a while back, but here is code that's carefully computing that value and then never doing anything with it. Delete, delete, delete.
Diffstat (limited to 'database.cc')
-rw-r--r--database.cc7
1 files changed, 0 insertions, 7 deletions
diff --git a/database.cc b/database.cc
index d947557..25489e3 100644
--- a/database.cc
+++ b/database.cc
@@ -740,20 +740,13 @@ _notmuch_database_link_message (notmuch_database_t *notmuch,
g_ptr_array_free (parents, TRUE);
if (thread_ids->len) {
- GString *thread_id;
char *id;
for (i = 0; i < thread_ids->len; i++) {
id = (char *) thread_ids->pdata[i];
_notmuch_message_add_thread_id (message, id);
- if (i == 0)
- thread_id = g_string_new (id);
- else
- g_string_append_printf (thread_id, ",%s", id);
-
free (id);
}
- g_string_free (thread_id, TRUE);
} else {
_notmuch_message_ensure_thread_id (message);
}