Skip to content

Commit 0efc528

Browse files
committed
Remove unneeded include statements for string / strings.h
Tesseract code does not use strings.h (strngs.h was once called strings.h), so that dependency can also be removed from cmake and cppan configuration. Signed-off-by: Stefan Weil <[email protected]>
1 parent de78ef8 commit 0efc528

File tree

3 files changed

+0
-7
lines changed

3 files changed

+0
-7
lines changed

cmake/Configure.cmake

-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ set(include_files_list
8888
stdbool.h
8989
stdint.h
9090
stdlib.h
91-
strings.h
9291
string.h
9392
sys/ipc.h
9493
sys/shm.h

cppan.yml

-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ projects:
105105
- stdbool.h
106106
- stdint.h
107107
- stdlib.h
108-
- strings.h
109108
- string.h
110109
- sys/ipc.h
111110
- sys/shm.h

src/ccmain/paragraphs_internal.h

-5
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@
2121
#define TESSERACT_CCMAIN_PARAGRAPHS_INTERNAL_H_
2222

2323
#include "paragraphs.h"
24-
#ifdef _MSC_VER
25-
#include <string>
26-
#else
27-
#include "strings.h"
28-
#endif
2924

3025
// NO CODE OUTSIDE OF paragraphs.cpp AND TESTS SHOULD NEED TO ACCESS
3126
// DATA STRUCTURES OR FUNCTIONS IN THIS FILE.

0 commit comments

Comments
 (0)