mirror of https://github.com/djcb/mu.git
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:
parent
125176d397
commit
69229a4228
|
@ -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);
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue