CamelStoreInfo: Removed unused 'uri' member.
authorMatthew Barnes <mbarnes@redhat.com>
Sun, 25 Sep 2011 16:29:02 +0000 (12:29 -0400)
committerMatthew Barnes <mbarnes@redhat.com>
Sun, 25 Sep 2011 16:30:13 +0000 (12:30 -0400)
camel/camel-store-summary.c
camel/camel-store-summary.h
camel/providers/nntp/camel-nntp-store.c
docs/reference/camel/tmpl/camel-store-summary.sgml

index 53a55b7..5a90759 100644 (file)
@@ -203,7 +203,6 @@ store_summary_store_info_free (CamelStoreSummary *summary,
                                CamelStoreInfo *info)
 {
        g_free (info->path);
-       g_free (info->uri);
        g_slice_free1 (summary->store_info_size, info);
 }
 
@@ -249,8 +248,6 @@ store_summary_store_info_set_string (CamelStoreSummary *summary,
                camel_store_summary_lock (summary, CAMEL_STORE_SUMMARY_SUMMARY_LOCK);
                g_hash_table_remove (summary->folders_path, (gchar *) camel_store_info_path (summary, info));
                g_free (info->path);
-               g_free (info->uri);
-               info->uri = NULL;
                info->path = g_strdup (str);
                g_hash_table_insert (summary->folders_path, (gchar *) camel_store_info_path (summary, info), info);
                summary->flags |= CAMEL_STORE_SUMMARY_DIRTY;
@@ -270,8 +267,6 @@ store_summary_store_info_set_string (CamelStoreSummary *summary,
                }
                g_free (info->path);
                info->path = v;
-               g_free (info->uri);
-               info->uri = NULL;
                g_hash_table_insert (summary->folders_path, (gchar *) camel_store_info_path (summary, info), info);
                camel_store_summary_unlock (summary, CAMEL_STORE_SUMMARY_SUMMARY_LOCK);
                break;
index 992a66b..7a2babf 100644 (file)
@@ -70,7 +70,6 @@ enum {
 
 struct _CamelStoreInfo {
        guint32 refcount;
-       gchar *uri;
        gchar *path;
        guint32 flags;
        guint32 unread;
index ccb1fd0..444e5d0 100644 (file)
@@ -645,14 +645,10 @@ nntp_store_info_update (CamelNNTPStore *store,
                         gchar *line)
 {
        CamelStoreSummary *summ = (CamelStoreSummary *) store->summary;
-       CamelURL *base_url;
        CamelNNTPStoreInfo *si, *fsi;
-       CamelURL *url;
        gchar *relpath, *tmp;
        guint32 last = 0, first = 0, new = 0;
 
-       base_url = camel_service_get_camel_url (CAMEL_SERVICE (store));
-
        tmp = strchr (line, ' ');
        if (tmp)
                *tmp++ = 0;
@@ -663,9 +659,6 @@ nntp_store_info_update (CamelNNTPStore *store,
 
                relpath = g_alloca (strlen (line) + 2);
                sprintf(relpath, "/%s", line);
-               url = camel_url_new_with_base (base_url, relpath);
-               si->info.uri = camel_url_to_string (url, CAMEL_URL_HIDE_ALL);
-               camel_url_free (url);
 
                si->info.path = g_strdup (line);
                si->full_name = g_strdup (line); /* why do we keep this? */