Skip to content

Commit a3e0c10

Browse files
committed
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 <[email protected]>
1 parent 325de57 commit a3e0c10

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

opencl/openclwrapper.cpp

-13
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,8 @@
2727
#include <stdio.h>
2828
#endif
2929

30-
/*
31-
Convenience macro to test the version of Leptonica.
32-
*/
33-
#if defined(LIBLEPT_MAJOR_VERSION) && defined(LIBLEPT_MINOR_VERSION)
34-
#define TESSERACT_LIBLEPT_PREREQ(maj, min) \
35-
((LIBLEPT_MAJOR_VERSION) > (maj) || \
36-
((LIBLEPT_MAJOR_VERSION) == (maj) && (LIBLEPT_MINOR_VERSION) >= (min)))
37-
#else
38-
#define TESSERACT_LIBLEPT_PREREQ(maj, min) 0
39-
#endif
40-
41-
#if TESSERACT_LIBLEPT_PREREQ(1, 73)
4230
#define CALLOC LEPT_CALLOC
4331
#define FREE LEPT_FREE
44-
#endif
4532

4633
#ifdef USE_OPENCL
4734

0 commit comments

Comments
 (0)