util:: remove unused funtion base_name (#22759)

This commit is contained in:
Dean Lee
2021-11-01 04:10:27 +08:00
committed by GitHub
parent 1d55f2f23e
commit 8da3cd3cdd
2 changed files with 0 additions and 7 deletions
-6
View File
@@ -212,12 +212,6 @@ std::string hexdump(const std::string& in) {
return ss.str();
}
std::string base_name(std::string const &path) {
size_t pos = path.find_last_of("/");
if (pos == std::string::npos) return path;
return path.substr(pos + 1);
}
std::string dir_name(std::string const &path) {
size_t pos = path.find_last_of("/");
if (pos == std::string::npos) return "";
-1
View File
@@ -68,7 +68,6 @@ float getenv(const char* key, float default_val);
std::string tohex(const uint8_t* buf, size_t buf_size);
std::string hexdump(const std::string& in);
std::string base_name(std::string const& path);
std::string dir_name(std::string const& path);
// **** file fhelpers *****