[evolution-data-server] CamelNNTPStore: Remove unused 'base_url' member.



commit 886e3468e55feb960e351cdd270fac6e13e46737
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sun Sep 25 21:03:48 2011 -0400

    CamelNNTPStore: Remove unused 'base_url' member.

 camel/providers/nntp/camel-nntp-store.c |   13 +++----------
 camel/providers/nntp/camel-nntp-store.h |    2 +-
 2 files changed, 4 insertions(+), 11 deletions(-)
---
diff --git a/camel/providers/nntp/camel-nntp-store.c b/camel/providers/nntp/camel-nntp-store.c
index 1ed5045..23e8c72 100644
--- a/camel/providers/nntp/camel-nntp-store.c
+++ b/camel/providers/nntp/camel-nntp-store.c
@@ -206,8 +206,6 @@ nntp_store_finalize (GObject *object)
 	CamelNNTPStore *nntp_store = CAMEL_NNTP_STORE (object);
 	struct _xover_header *xover, *xn;
 
-	g_free (nntp_store->base_url);
-
 	xover = nntp_store->xover;
 	while (xover) {
 		xn = xover->next;
@@ -1254,8 +1252,8 @@ nntp_store_initable_init (GInitable *initable,
 	CamelNNTPStore *nntp_store;
 	CamelStore *store;
 	CamelService *service;
-	CamelURL *url;
-	const gchar *user_data_dir, *user_cache_dir;
+	const gchar *user_data_dir;
+	const gchar *user_cache_dir;
 	gchar *tmp;
 
 	nntp_store = CAMEL_NNTP_STORE (initable);
@@ -1269,7 +1267,7 @@ nntp_store_initable_init (GInitable *initable,
 	if (!parent_initable_interface->init (initable, cancellable, error))
 		return FALSE;
 
-	url = camel_service_get_camel_url (service);
+	service = CAMEL_SERVICE (initable);
 	user_data_dir = camel_service_get_user_data_dir (service);
 	user_cache_dir = camel_service_get_user_cache_dir (service);
 
@@ -1281,11 +1279,6 @@ nntp_store_initable_init (GInitable *initable,
 		return FALSE;
 	}
 
-	/* FIXME */
-	nntp_store->base_url = camel_url_to_string (
-		url, CAMEL_URL_HIDE_PASSWORD |
-		CAMEL_URL_HIDE_PARAMS | CAMEL_URL_HIDE_AUTH);
-
 	tmp = g_build_filename (user_data_dir, ".ev-store-summary", NULL);
 	nntp_store->summary = camel_nntp_store_summary_new ();
 	camel_store_summary_set_filename ((CamelStoreSummary *) nntp_store->summary, tmp);
diff --git a/camel/providers/nntp/camel-nntp-store.h b/camel/providers/nntp/camel-nntp-store.h
index 8fa0568..8c6e3fa 100644
--- a/camel/providers/nntp/camel-nntp-store.h
+++ b/camel/providers/nntp/camel-nntp-store.h
@@ -99,7 +99,7 @@ struct _CamelNNTPStore {
 
 	struct _CamelDataCache *cache;
 
-	gchar *current_folder, *base_url;
+	gchar *current_folder;
 
 	struct _xover_header *xover;
 	guint32 capabilities; /* bit-or of nntp_capabilities */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]