util:: remove unused funtion base_name (#22759)

pull/22762/head
Dean Lee 2021-11-01 04:10:27 +08:00 committed by GitHub
parent 1d55f2f23e
commit 8da3cd3cdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 7 deletions

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 "";

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 *****