mu: remove contacts-path leftovers

The contacts are now embedded in the xapian database, so we don't need
the contact-path anymore. Let's remove some leftovers.
This commit is contained in:
Dirk-Jan C. Binnema 2019-07-12 17:38:47 +03:00
parent 125176d397
commit 69229a4228
3 changed files with 5 additions and 8 deletions

View File

@ -125,8 +125,7 @@ add_synonyms (MuStore *store)
MuStore*
mu_store_new_writable (const char* xpath, const char *contacts_cache,
gboolean rebuild, GError **err)
mu_store_new_writable (const char* xpath, gboolean rebuild, GError **err)
{
g_return_val_if_fail (xpath, NULL);

View File

@ -38,14 +38,12 @@ typedef struct _MuStore MuStore;
* create a new writable Xapian store, a place to store documents
*
* @param path the path to the database
* @param ccachepath path where to cache the contacts information, or NULL
* @param err to receive error info or NULL. err->code is MuError value
*
* @return a new MuStore object with ref count == 1, or NULL in case
* of error; free with mu_store_unref
*/
MuStore* mu_store_new_writable (const char *xpath,
const char *ccachepath,
gboolean rebuild, GError **err)
G_GNUC_MALLOC G_GNUC_WARN_UNUSED_RESULT;

View File

@ -44,7 +44,7 @@ test_mu_store_new_destroy (void)
g_assert (tmpdir);
err = NULL;
store = mu_store_new_writable (tmpdir, NULL, FALSE, &err);
store = mu_store_new_writable (tmpdir, FALSE, &err);
g_assert_no_error (err);
g_assert (store);
@ -68,7 +68,7 @@ test_mu_store_version (void)
g_assert (tmpdir);
err = NULL;
store = mu_store_new_writable (tmpdir, NULL, FALSE, &err);
store = mu_store_new_writable (tmpdir, FALSE, &err);
g_assert (store);
mu_store_unref (store);
store = mu_store_new_read_only (tmpdir, &err);
@ -95,7 +95,7 @@ test_mu_store_store_msg_and_count (void)
tmpdir = test_mu_common_get_random_tmpdir();
g_assert (tmpdir);
store = mu_store_new_writable (tmpdir, NULL, FALSE, NULL);
store = mu_store_new_writable (tmpdir, FALSE, NULL);
g_assert (store);
g_free (tmpdir);
@ -153,7 +153,7 @@ test_mu_store_store_msg_remove_and_count (void)
tmpdir = test_mu_common_get_random_tmpdir();
g_assert (tmpdir);
store = mu_store_new_writable (tmpdir, NULL, FALSE, NULL);
store = mu_store_new_writable (tmpdir, FALSE, NULL);
g_assert (store);
g_assert_cmpuint (0,==,mu_store_count (store, NULL));