[evolution] EHTTPRequest: Drop unneeded reference to EMailPartList
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] EHTTPRequest: Drop unneeded reference to EMailPartList
- Date: Thu, 30 Jan 2014 17:26:48 +0000 (UTC)
commit f77ad2a662bbe99d77700d51d45eaf198f7e085c
Author: Milan Crha <mcrha redhat com>
Date: Thu Jan 30 18:26:05 2014 +0100
EHTTPRequest: Drop unneeded reference to EMailPartList
mail/e-http-request.c | 19 -------------------
1 files changed, 0 insertions(+), 19 deletions(-)
---
diff --git a/mail/e-http-request.c b/mail/e-http-request.c
index 192b056..c85a268 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]