aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/query.cc
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2009-11-23 20:25:13 -0800
committerGravatar Carl Worth <cworth@cworth.org>2009-11-23 20:25:13 -0800
commit94eb9aacd40a8aa133f64bbe5ed71c0138fb5ed9 (patch)
tree54ca17330d4b930cf76c1025be854a7512c1dd50 /lib/query.cc
parentba3554b8045e16ae883d559b7e575e8aca00f6d2 (diff)
lib/query: Drop the first and max_messages arguments from search_messages.
These only existed to support the chunky-searching hack, but that was recently dropped anyway.
Diffstat (limited to 'lib/query.cc')
-rw-r--r--lib/query.cc10
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/query.cc b/lib/query.cc
index 504ab9e6..7d191e52 100644
--- a/lib/query.cc
+++ b/lib/query.cc
@@ -76,9 +76,7 @@ notmuch_query_set_sort (notmuch_query_t *query, notmuch_sort_t sort)
}
notmuch_messages_t *
-notmuch_query_search_messages (notmuch_query_t *query,
- int first,
- int max_messages)
+notmuch_query_search_messages (notmuch_query_t *query)
{
notmuch_database_t *notmuch = query->notmuch;
const char *query_string = query->query_string;
@@ -130,9 +128,7 @@ notmuch_query_search_messages (notmuch_query_t *query,
enquire.set_query (final_query);
- if (max_messages == -1)
- max_messages = notmuch->xapian_db->get_doccount ();
- mset = enquire.get_mset (first, max_messages);
+ mset = enquire.get_mset (0, notmuch->xapian_db->get_doccount ());
for (i = mset.begin (); i != mset.end (); i++) {
notmuch_message_t *message;
@@ -186,7 +182,7 @@ notmuch_query_search_threads (notmuch_query_t *query)
threads->threads = g_hash_table_new_full (g_str_hash, g_str_equal,
free, NULL);
- threads->messages = notmuch_query_search_messages (query, 0, -1);
+ threads->messages = notmuch_query_search_messages (query);
threads->thread_id = NULL;