[evince] Remove unused configure check for cairo_format_stride_for_width



commit e6ed0d4cdb6326e329c8f61f9cc19ff9331cb0ce
Author: Jason Crain <jcrain src gnome org>
Date:   Sat Dec 2 20:24:45 2017 -0600

    Remove unused configure check for cairo_format_stride_for_width
    
    This function was introduced in cairo version 1.6.  We already require
    version 1.10 so this function will always be available.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=788980

 backend/tiff/tiff-document.c |    4 ----
 configure.ac                 |    6 ------
 2 files changed, 0 insertions(+), 10 deletions(-)
---
diff --git a/backend/tiff/tiff-document.c b/backend/tiff/tiff-document.c
index 7bf95c2..7715031 100644
--- a/backend/tiff/tiff-document.c
+++ b/backend/tiff/tiff-document.c
@@ -273,11 +273,7 @@ tiff_document_render (EvDocument      *document,
                return NULL;
        }
 
-#ifdef HAVE_CAIRO_FORMAT_STRIDE_FOR_WIDTH
        rowstride = cairo_format_stride_for_width (CAIRO_FORMAT_RGB24, width);
-#else
-       rowstride = width * 4;
-#endif
        if (rowstride / 4 != width) {
                g_warning("Overflow while rendering document.");
                /* overflow, or cairo was changed in an unsupported way */
diff --git a/configure.ac b/configure.ac
index 1c2a960..923c658 100644
--- a/configure.ac
+++ b/configure.ac
@@ -247,12 +247,6 @@ fi
 BACKEND_LIBTOOL_FLAGS="-module -avoid-version -no-undefined -export-symbols 
\$(top_srcdir)/backend/backend.symbols"
 AC_SUBST(BACKEND_LIBTOOL_FLAGS)
 
-dnl ===== Check special functions
-evince_save_LIBS=$LIBS
-LIBS="$LIBS $BACKEND_LIBS"
-AC_CHECK_FUNCS(cairo_format_stride_for_width)
-LIBS=$evince_save_LIBS
-
 # ******************
 # GKT+ Unix Printing
 # ******************


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]