summaryrefslogtreecommitdiff
path: root/libdocument/ev-link.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-12-09 12:37:08 +0100
committerinfirit <[email protected]>2014-12-09 23:02:27 +0100
commit9ddd72c4f3e5e545a109d619c4e7faf2e90eca9f (patch)
tree713d4582787f756117d3b13823cb76265139de7e /libdocument/ev-link.c
parenta0640f1aaed023144137f0c8ad7f04eb5c9605a0 (diff)
downloadatril-9ddd72c4f3e5e545a109d619c4e7faf2e90eca9f.tar.bz2
atril-9ddd72c4f3e5e545a109d619c4e7faf2e90eca9f.tar.xz
[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 <[email protected]>
Diffstat (limited to 'libdocument/ev-link.c')
-rw-r--r--libdocument/ev-link.c21
1 files changed, 0 insertions, 21 deletions
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;
-}