diff options
Diffstat (limited to 'libview/ev-page-cache.c')
-rw-r--r-- | libview/ev-page-cache.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/libview/ev-page-cache.c b/libview/ev-page-cache.c index 1bf689e..8fba8c6 100644 --- a/libview/ev-page-cache.c +++ b/libview/ev-page-cache.c @@ -149,32 +149,6 @@ ev_page_cache_set_page_label (EvPageCache *page_cache, return FALSE; } -void -ev_page_cache_get_size (EvPageCache *page_cache, - gint page, - gint rotation, - gfloat scale, - gint *width, - gint *height) -{ - double w, h; - - g_return_if_fail (EV_IS_PAGE_CACHE (page_cache)); - - ev_document_get_page_size (page_cache->document, page, &w, &h); - - w = w * scale + 0.5; - h = h * scale + 0.5; - - if (rotation == 0 || rotation == 180) { - if (width) *width = (int)w; - if (height) *height = (int)h; - } else { - if (width) *width = (int)h; - if (height) *height = (int)w; - } -} - #define PAGE_CACHE_STRING "ev-page-cache" EvPageCache * |