lib: remove use of notmuch_query_search_messages from query.cc

There is not too much point in worrying about the bad error reporting
here, because the count api is due for the same deprecation.
This commit is contained in:
David Bremner 2015-06-07 17:01:57 +02:00
parent 005c2f0df1
commit f16944c3b4

View file

@ -618,10 +618,14 @@ notmuch_query_count_threads (notmuch_query_t *query)
GHashTable *hash; GHashTable *hash;
unsigned int count; unsigned int count;
notmuch_sort_t sort; notmuch_sort_t sort;
notmuch_status_t status;
sort = query->sort; sort = query->sort;
query->sort = NOTMUCH_SORT_UNSORTED; query->sort = NOTMUCH_SORT_UNSORTED;
messages = notmuch_query_search_messages (query); status = notmuch_query_search_messages_st (query, &messages);
if (status)
return 0;
query->sort = sort; query->sort = sort;
if (messages == NULL) if (messages == NULL)
return 0; return 0;