aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2014-01-31 01:26:05 +0800
committerMilan Crha <mcrha@redhat.com>2014-01-31 01:26:05 +0800
commitf77ad2a662bbe99d77700d51d45eaf198f7e085c (patch)
tree2d7298d75ba2162243dc22db640490078d38f60c
parent285c6727853e4a5db88dde8ff300dbfc13ea176e (diff)
downloadgsoc2013-evolution-f77ad2a662bbe99d77700d51d45eaf198f7e085c.tar
gsoc2013-evolution-f77ad2a662bbe99d77700d51d45eaf198f7e085c.tar.gz
gsoc2013-evolution-f77ad2a662bbe99d77700d51d45eaf198f7e085c.tar.bz2
gsoc2013-evolution-f77ad2a662bbe99d77700d51d45eaf198f7e085c.tar.lz
gsoc2013-evolution-f77ad2a662bbe99d77700d51d45eaf198f7e085c.tar.xz
gsoc2013-evolution-f77ad2a662bbe99d77700d51d45eaf198f7e085c.tar.zst
gsoc2013-evolution-f77ad2a662bbe99d77700d51d45eaf198f7e085c.zip
EHTTPRequest: Drop unneeded reference to EMailPartList
-rw-r--r--mail/e-http-request.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/mail/e-http-request.c b/mail/e-http-request.c
index 192b056538..c85a26810e 100644
--- a/mail/e-http-request.c
+++ b/mail/e-http-request.c
@@ -45,8 +45,6 @@
struct _EHTTPRequestPrivate {
gchar *content_type;
gint content_length;
-
- EMailPartList *parts_list;
};
G_DEFINE_TYPE (EHTTPRequest, e_http_request, SOUP_TYPE_REQUEST)
@@ -471,11 +469,6 @@ http_request_finalize (GObject *object)
request->priv->content_type = NULL;
}
- if (request->priv->parts_list) {
- g_object_unref (request->priv->parts_list);
- request->priv->parts_list = NULL;
- }
-
G_OBJECT_CLASS (e_http_request_parent_class)->finalize (object);
}
@@ -494,15 +487,11 @@ http_request_send_async (SoupRequest *request,
GAsyncReadyCallback callback,
gpointer user_data)
{
- EHTTPRequest *ehr;
GSimpleAsyncResult *simple;
- gchar *mail_uri;
SoupURI *uri;
const gchar *enc;
- CamelObjectBag *registry;
GHashTable *query;
- ehr = E_HTTP_REQUEST (request);
uri = soup_request_get_uri (request);
g_return_if_fail (soup_uri_get_query (uri) != NULL);
@@ -521,14 +510,6 @@ http_request_send_async (SoupRequest *request,
return;
}
- mail_uri = soup_uri_decode (enc);
-
- registry = e_mail_part_list_get_registry ();
- ehr->priv->parts_list = camel_object_bag_get (registry, mail_uri);
- g_free (mail_uri);
-
- g_return_if_fail (ehr->priv->parts_list);
-
simple = g_simple_async_result_new (
G_OBJECT (request), callback,
user_data, http_request_send_async);