Remove unused STRING::strdup().

This commit is contained in:
Egor Pugin 2021-03-10 14:42:50 +03:00
parent f0e30a2af2
commit 6de97309a1

View File

@ -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);