aboutsummaryrefslogtreecommitdiff
path: root/src/posix_extras.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/posix_extras.h')
-rw-r--r--src/posix_extras.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/posix_extras.h b/src/posix_extras.h
index 6f2fb37..b6dbdfd 100644
--- a/src/posix_extras.h
+++ b/src/posix_extras.h
@@ -15,9 +15,7 @@
#ifndef POSIX_EXTRAS_H_
#define POSIX_EXTRAS_H_
-#include <cerrno>
#include <experimental/optional>
-#include <stdexcept>
#include <string>
#include <dirent.h>
@@ -26,23 +24,6 @@
namespace scoville {
-class IoError : public std::runtime_error {
- public:
- IoError() : IoError(errno) {}
-
- explicit IoError(const int number)
- : std::runtime_error(Message(number)), number_(number) {}
-
- int number() const noexcept { return number_; }
-
- // Converts an errno into a human-readable message, a la strerror(3).
- // Thread-safe.
- static std::string Message(int) noexcept;
-
- private:
- int number_;
-};
-
class File;
// RAII wrapper for Unix directory streams.