diff --git a/src/common/tvgStr.cpp b/src/common/tvgStr.cpp index 1336f244..eb436f5b 100644 --- a/src/common/tvgStr.cpp +++ b/src/common/tvgStr.cpp @@ -207,16 +207,6 @@ error: return 0.0f; } - -int str2int(const char* str, size_t n) -{ - int ret = 0; - for(size_t i = 0; i < n; ++i) { - ret = ret * 10 + (str[i] - '0'); - } - return ret; -} - char* strDuplicate(const char *str, size_t n) { auto len = strlen(str); diff --git a/src/common/tvgStr.h b/src/common/tvgStr.h index 9e5f9ba9..272ff4ac 100644 --- a/src/common/tvgStr.h +++ b/src/common/tvgStr.h @@ -29,7 +29,6 @@ namespace tvg { float strToFloat(const char *nPtr, char **endPtr); //convert to float -int str2int(const char* str, size_t n); //convert to integer char* strDuplicate(const char *str, size_t n); //copy the string char* strDirname(const char* path); //return the full directory name