diff options
Diffstat (limited to 'include/spdlog/details/os.h')
-rw-r--r-- | include/spdlog/details/os.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/include/spdlog/details/os.h b/include/spdlog/details/os.h index 04e0d712..28eb53c3 100644 --- a/include/spdlog/details/os.h +++ b/include/spdlog/details/os.h @@ -383,18 +383,6 @@ inline std::string filename_to_str(const filename_t &filename) } #endif -// Return errno string (thread safe) -inline std::string errno_str(int err_num) -{ - char buf[256], *buf_ptr = buf; - SPDLOG_CONSTEXPR auto buf_size = sizeof(buf); - if (fmt::safe_strerror(err_num, buf_ptr, buf_size) == 0) - { - return std::string(buf_ptr); - } - return "Unknown error"; -} - inline int pid() { |