]> www.fi.muni.cz Git - evince.git/commitdiff
[libdocument] Remove unused method ev_link_get_page()
authorCarlos Garcia Campos <carlosgc@gnome.org>
Thu, 2 Sep 2010 16:14:33 +0000 (18:14 +0200)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Thu, 2 Sep 2010 16:16:55 +0000 (18:16 +0200)
It has been replaced by ev_document_links_get_link_page() that supports
named destinations.

libdocument/ev-link.c
libdocument/ev-link.h

index a96f527c0304667b76844b27c1bc42d56848b2bc..a9ad41e8d4cb0de67cfc5c73e632826eb75ccc0f 100644 (file)
@@ -180,23 +180,4 @@ ev_link_new (const char   *title,
                                      NULL));
 }
 
-gint
-ev_link_get_page (EvLink *link)
-{
-       EvLinkAction *action;
-       EvLinkDest *dest;
-
-       action = ev_link_get_action (link);
-       if (!action)
-               return -1;
 
-       if (ev_link_action_get_action_type (action) !=
-           EV_LINK_ACTION_TYPE_GOTO_DEST)
-               return -1;
-
-       dest = ev_link_action_get_dest (action);
-       if (dest)
-               return ev_link_dest_get_page (dest);
-               
-       return -1;
-}
index 74581529b1ccf02824bb7d6167e654998d28df3d..4d498b2e2e8a7a56f2aa6ec4d55bcd8df825e0b7 100644 (file)
@@ -48,7 +48,6 @@ EvLink             *ev_link_new        (const gchar  *title,
 
 const gchar  *ev_link_get_title  (EvLink       *self);
 EvLinkAction *ev_link_get_action (EvLink       *self);
-gint         ev_link_get_page   (EvLink       *link);
 
 G_END_DECLS