X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;ds=sidebyside;f=libdocument%2Fev-link.c;h=a9ad41e8d4cb0de67cfc5c73e632826eb75ccc0f;hb=38c1b9aab8bfb41de6dc07df26fd6743a63ea015;hp=a96f527c0304667b76844b27c1bc42d56848b2bc;hpb=19a00ed1cd086dcca4b6bfeb84e0b1488b2e3089;p=evince.git diff --git a/libdocument/ev-link.c b/libdocument/ev-link.c index a96f527c..a9ad41e8 100644 --- a/libdocument/ev-link.c +++ b/libdocument/ev-link.c @@ -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; -}