[evince] [libdocument] Remove unused method ev_link_get_page()
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] [libdocument] Remove unused method ev_link_get_page()
- Date: Thu, 2 Sep 2010 16:21:24 +0000 (UTC)
commit 347a6044d6e76f1ccca5827d800d7705750efdef
Author: Carlos Garcia Campos <carlosgc gnome org>
Date: Thu Sep 2 18:14:33 2010 +0200
[libdocument] Remove unused method ev_link_get_page()
It has been replaced by ev_document_links_get_link_page() that supports
named destinations.
libdocument/ev-link.c | 19 -------------------
libdocument/ev-link.h | 1 -
2 files changed, 0 insertions(+), 20 deletions(-)
---
diff --git a/libdocument/ev-link.c b/libdocument/ev-link.c
index a96f527..a9ad41e 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;
-}
diff --git a/libdocument/ev-link.h b/libdocument/ev-link.h
index 7458152..4d498b2 100644
--- a/libdocument/ev-link.h
+++ b/libdocument/ev-link.h
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]