util:: remove unused funtion base_name (#22759)
parent
1d55f2f23e
commit
8da3cd3cdd
|
@ -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 "";
|
||||
|
|
|
@ -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 *****
|
||||
|
|
Loading…
Reference in New Issue