X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=libview%2Fev-page-cache.c;h=8fba8c6ad775bc2b4ea7272ef0f0e512e4b4b5e9;hb=6965a51a28f76d0a669d0d1c9fdc089e6cf46c7d;hp=1bf689eea0b5838803f8b4a838a6c55801e5b9c0;hpb=af6e8468fa9a8b26d4ac431b1a92e556a61c9ce7;p=evince.git diff --git a/libview/ev-page-cache.c b/libview/ev-page-cache.c index 1bf689ee..8fba8c6a 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 *