mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 12:28:09 +01:00
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.
This commit is contained in:
parent
6b20dbff86
commit
ec77f6b50c
1 changed files with 0 additions and 7 deletions
|
@ -740,20 +740,13 @@ _notmuch_database_link_message (notmuch_database_t *notmuch,
|
||||||
g_ptr_array_free (parents, TRUE);
|
g_ptr_array_free (parents, TRUE);
|
||||||
|
|
||||||
if (thread_ids->len) {
|
if (thread_ids->len) {
|
||||||
GString *thread_id;
|
|
||||||
char *id;
|
char *id;
|
||||||
|
|
||||||
for (i = 0; i < thread_ids->len; i++) {
|
for (i = 0; i < thread_ids->len; i++) {
|
||||||
id = (char *) thread_ids->pdata[i];
|
id = (char *) thread_ids->pdata[i];
|
||||||
_notmuch_message_add_thread_id (message, id);
|
_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);
|
free (id);
|
||||||
}
|
}
|
||||||
g_string_free (thread_id, TRUE);
|
|
||||||
} else {
|
} else {
|
||||||
_notmuch_message_ensure_thread_id (message);
|
_notmuch_message_ensure_thread_id (message);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue