Removed unused overload of dash_if_empty that sonarcloud flags as potential buffer overflow

This commit is contained in:
Eduardo Arias
2024-08-09 14:02:40 -07:00
parent 8b17f3691f
commit cc0f893854
2 changed files with 2 additions and 11 deletions

View File

@@ -75,15 +75,6 @@ inline std::string dash_if_empty(const std::string *str) {
}
inline std::string dash_if_empty(const char *str) {
if (str == NULL || std::strlen(str) == 0) {
return "-";
}
return std::string(str);
}
inline std::string limitTo(int amount, const std::string &str) {
std::string ret;