From a3e0c10dc794c7b94ef4ed1a33d773adc26709ad Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sat, 22 Apr 2017 18:22:13 +0200 Subject: [PATCH] Remove unneeded code for old Leptonica versions Tesseract requires Leptonica 1.74 or newer, so that code is no longer needed. Signed-off-by: Stefan Weil --- opencl/openclwrapper.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/opencl/openclwrapper.cpp b/opencl/openclwrapper.cpp index 070c0206da..2cb79c7c27 100644 --- a/opencl/openclwrapper.cpp +++ b/opencl/openclwrapper.cpp @@ -27,21 +27,8 @@ #include #endif -/* - Convenience macro to test the version of Leptonica. -*/ -#if defined(LIBLEPT_MAJOR_VERSION) && defined(LIBLEPT_MINOR_VERSION) -#define TESSERACT_LIBLEPT_PREREQ(maj, min) \ - ((LIBLEPT_MAJOR_VERSION) > (maj) || \ - ((LIBLEPT_MAJOR_VERSION) == (maj) && (LIBLEPT_MINOR_VERSION) >= (min))) -#else -#define TESSERACT_LIBLEPT_PREREQ(maj, min) 0 -#endif - -#if TESSERACT_LIBLEPT_PREREQ(1, 73) #define CALLOC LEPT_CALLOC #define FREE LEPT_FREE -#endif #ifdef USE_OPENCL