mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-22 01:30:49 +08:00
Remove unused STRING::strdup().
This commit is contained in:
parent
f0e30a2af2
commit
6de97309a1
@ -62,11 +62,6 @@ class STRING : public std::string {
|
||||
return length();
|
||||
}
|
||||
|
||||
inline char* strdup() const {
|
||||
int32_t len = length() + 1;
|
||||
return strncpy(new char[len], c_str(), len);
|
||||
}
|
||||
|
||||
TESS_API
|
||||
void split(char c, std::vector<STRING>* splited);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user