[evolution] Remove unused e_web_view_extract_uri().



commit c5c6c39c0600bab0ecb1d7933119ede37bd257df
Author: Matthew Barnes <mbarnes redhat com>
Date:   Mon Jul 22 13:54:54 2013 -0400

    Remove unused e_web_view_extract_uri().

 .../evolution-util/evolution-util-sections.txt     |    1 -
 e-util/e-web-view.c                                |   37 --------------------
 e-util/e-web-view.h                                |    4 --
 3 files changed, 0 insertions(+), 42 deletions(-)
---
diff --git a/doc/reference/evolution-util/evolution-util-sections.txt 
b/doc/reference/evolution-util/evolution-util-sections.txt
index ff3fb5e..b48452a 100644
--- a/doc/reference/evolution-util/evolution-util-sections.txt
+++ b/doc/reference/evolution-util/evolution-util-sections.txt
@@ -4396,7 +4396,6 @@ e_web_view_clear_highlights
 e_web_view_update_highlights
 e_web_view_get_action
 e_web_view_get_action_group
-e_web_view_extract_uri
 e_web_view_copy_clipboard
 e_web_view_cut_clipboard
 e_web_view_is_selection_active
diff --git a/e-util/e-web-view.c b/e-util/e-web-view.c
index 77d9887..5e2519a 100644
--- a/e-util/e-web-view.c
+++ b/e-util/e-web-view.c
@@ -984,28 +984,6 @@ web_view_create_plugin_widget (EWebView *web_view,
        return widget;
 }
 
-static gchar *
-web_view_extract_uri (EWebView *web_view,
-                      GdkEventButton *event)
-{
-       WebKitHitTestResult *result;
-       WebKitHitTestResultContext context;
-       gchar *uri = NULL;
-
-       result = webkit_web_view_get_hit_test_result (
-               WEBKIT_WEB_VIEW (web_view), event);
-
-       g_object_get (result, "context", &context, "link-uri", &uri, NULL);
-       g_object_unref (result);
-
-       if (context & WEBKIT_HIT_TEST_RESULT_CONTEXT_LINK)
-               return uri;
-
-       g_free (uri);
-
-       return NULL;
-}
-
 static void
 web_view_hovering_over_link (EWebView *web_view,
                              const gchar *title,
@@ -1429,7 +1407,6 @@ e_web_view_class_init (EWebViewClass *class)
        widget_class->drag_motion = web_view_drag_motion;
 
        class->create_plugin_widget = web_view_create_plugin_widget;
-       class->extract_uri = web_view_extract_uri;
        class->hovering_over_link = web_view_hovering_over_link;
        class->link_clicked = web_view_link_clicked;
        class->load_string = web_view_load_string;
@@ -2424,20 +2401,6 @@ e_web_view_get_action_group (EWebView *web_view,
        return e_lookup_action_group (ui_manager, group_name);
 }
 
-gchar *
-e_web_view_extract_uri (EWebView *web_view,
-                        GdkEventButton *event)
-{
-       EWebViewClass *class;
-
-       g_return_val_if_fail (E_IS_WEB_VIEW (web_view), NULL);
-
-       class = E_WEB_VIEW_GET_CLASS (web_view);
-       g_return_val_if_fail (class->extract_uri != NULL, NULL);
-
-       return class->extract_uri (web_view, event);
-}
-
 void
 e_web_view_copy_clipboard (EWebView *web_view)
 {
diff --git a/e-util/e-web-view.h b/e-util/e-web-view.h
index 62ef1fa..ea7676a 100644
--- a/e-util/e-web-view.h
+++ b/e-util/e-web-view.h
@@ -71,8 +71,6 @@ struct _EWebViewClass {
                                                 const gchar *mime_type,
                                                 const gchar *uri,
                                                 GHashTable *param);
-       gchar *         (*extract_uri)          (EWebView *web_view,
-                                                GdkEventButton *event);
        void            (*hovering_over_link)   (EWebView *web_view,
                                                 const gchar *title,
                                                 const gchar *uri);
@@ -179,8 +177,6 @@ GtkAction * e_web_view_get_action           (EWebView *web_view,
                                                 const gchar *action_name);
 GtkActionGroup *e_web_view_get_action_group    (EWebView *web_view,
                                                 const gchar *group_name);
-gchar *                e_web_view_extract_uri          (EWebView *web_view,
-                                                GdkEventButton *event);
 void           e_web_view_copy_clipboard       (EWebView *web_view);
 void           e_web_view_cut_clipboard        (EWebView *web_view);
 gboolean       e_web_view_is_selection_active  (EWebView *web_view);


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