From: David Bremner Date: Sun, 4 Jun 2017 12:32:24 +0000 (-0300) Subject: lib: isolate n_d_add_message and helper functions into own file X-Git-Tag: 0.26_rc0~222 X-Git-Url: https://git.notmuchmail.org/git?a=commitdiff_plain;h=4034a7cec75b785c9f935186a4daad7c325df56c;hp=4034a7cec75b785c9f935186a4daad7c325df56c;p=notmuch lib: isolate n_d_add_message and helper functions into own file 'database.cc' is becoming a monster, and it's hard to follow what the various static functions are used for. It turns out that about 1/3 of this file notmuch_database_add_message and helper functions not used by any other function. This commit isolates this code into it's own file. Some side effects of this refactoring: - find_doc_ids becomes the non-static (but still private) _notmuch_database_find_doc_ids - a few instances of 'string' have 'std::' prepended, avoiding the need for 'using namespace std;' in the new file. ---