[balsa] Remove dead code



commit 9a842bc1a6db102b9377a2a98f9a3526259ad643
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Tue Jan 5 16:45:32 2010 -0500

    Remove dead code

 ChangeLog       |    4 ++++
 libbalsa/html.c |   34 ----------------------------------
 2 files changed, 4 insertions(+), 34 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index f847fbf..536c948 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2010-01-05  Peter Bloomfield
 
+	* libbalsa/html.c (libbalsa_html_new): remove dead code.
+
+2010-01-05  Peter Bloomfield
+
 	* src/balsa-message.c (add_part), (select_part): remove dead or
 	redundant code.
 
diff --git a/libbalsa/html.c b/libbalsa/html.c
index a43da0c..1eddf64 100644
--- a/libbalsa/html.c
+++ b/libbalsa/html.c
@@ -61,10 +61,6 @@
 typedef struct {
     WebKitWebView        *web_view;
     WebKitWebFrame       *frame;
-#if !WEBKIT_CHECK_VERSION(1, 12, 0)
-    GtkAdjustment        *hadj;
-    GtkAdjustment        *vadj;
-#endif                          /* !WEBKIT_CHECK_VERSION(1, 12, 0) */
     LibBalsaHtmlCallback  hover_cb;
     LibBalsaHtmlCallback  clicked_cb;
     LibBalsaMessage      *message;
@@ -86,24 +82,6 @@ lbh_hovering_over_link_cb(GtkWidget   * web_view,
     (*info->hover_cb)(uri);
 }
 
-#if !WEBKIT_CHECK_VERSION(1, 12, 0)
-static void
-lbh_size_request_cb(GtkWidget      * widget,
-                    GtkRequisition * requisition,
-                    gpointer         data)
-{
-    LibBalsaWebKitInfo *info = data;
-    gint upper;
-
-    upper = gtk_adjustment_get_upper(info->hadj);
-    if (upper > requisition->width)
-        requisition->width = upper;
-    upper = gtk_adjustment_get_upper(info->vadj);
-    if (upper > requisition->height)
-        requisition->height = upper;
-}
-#endif                          /* !WEBKIT_CHECK_VERSION(1, 12, 0) */
-
 /*
  * Callback for the "navigation-policy-decision-requested" signal
  *
@@ -291,18 +269,6 @@ libbalsa_html_new(const gchar        * text,
                  "enable-plugins",   FALSE,
                  NULL);
 
-#if !WEBKIT_CHECK_VERSION(1, 12, 0)
-    info->hadj =
-        GTK_ADJUSTMENT(gtk_adjustment_new(0.0, 0.0, 0.0, 0.0, 0.0, 0.0));
-    info->vadj =
-        GTK_ADJUSTMENT(gtk_adjustment_new(0.0, 0.0, 0.0, 0.0, 0.0, 0.0));
-    gtk_widget_set_scroll_adjustments(widget, info->hadj, info->vadj);
-    g_object_unref(g_object_ref_sink(info->hadj));
-    g_object_unref(g_object_ref_sink(info->vadj));
-    g_signal_connect(web_view, "size-request",
-                     G_CALLBACK(lbh_size_request_cb), info);
-
-#endif                          /* !WEBKIT_CHECK_VERSION(1, 12, 0) */
     info->hover_cb = hover_cb;
     g_signal_connect(web_view, "hovering-over-link",
                      G_CALLBACK(lbh_hovering_over_link_cb), info);



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