From 9ddd72c4f3e5e545a109d619c4e7faf2e90eca9f Mon Sep 17 00:00:00 2001 From: infirit Date: Tue, 9 Dec 2014 12:37:08 +0100 Subject: [libdocument] Remove unused method ev_link_get_page() It has been replaced by ev_document_links_get_link_page() that supports named destinations. Taken from evince commit: 347a6044d6e76f1ccca5827d800d7705750efdef From: Carlos Garcia Campos --- libdocument/ev-link.c | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'libdocument/ev-link.c') diff --git a/libdocument/ev-link.c b/libdocument/ev-link.c index 189c66c9..dab2e9f5 100644 --- a/libdocument/ev-link.c +++ b/libdocument/ev-link.c @@ -179,24 +179,3 @@ ev_link_new (const char *title, "action", action, 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; -} -- cgit v1.2.1