diff options
Diffstat (limited to 'src/uio.cc')
| -rw-r--r-- | src/uio.cc | 32 |
1 files changed, 0 insertions, 32 deletions
@@ -572,22 +572,6 @@ std::unique_ptr<Reader> open(std::unique_ptr<io::Reader> reader, std::unreachable(); } -std::expected<std::unique_ptr<Reader>, io::OpenError> open( - const std::string& file_path, u::ReaderConfig config) { - auto ret = io::open(file_path); - if (ret.has_value()) - return open(std::move(ret.value()), config); - return std::unexpected(ret.error()); -} - -std::expected<std::unique_ptr<Reader>, io::OpenError> openat( - int dirfd, const std::string& file_path, u::ReaderConfig config) { - auto ret = io::openat(dirfd, file_path); - if (ret.has_value()) - return open(std::move(ret.value()), config); - return std::unexpected(ret.error()); -} - } // namespace u8 namespace u16 { @@ -675,20 +659,4 @@ std::unique_ptr<Reader> open(std::unique_ptr<io::Reader> reader, std::unreachable(); } -std::expected<std::unique_ptr<Reader>, io::OpenError> open( - const std::string& file_path, u::ReaderConfig config) { - auto ret = io::open(file_path); - if (ret.has_value()) - return open(std::move(ret.value()), config); - return std::unexpected(ret.error()); -} - -std::expected<std::unique_ptr<Reader>, io::OpenError> openat( - int dirfd, const std::string& file_path, u::ReaderConfig config) { - auto ret = io::openat(dirfd, file_path); - if (ret.has_value()) - return open(std::move(ret.value()), config); - return std::unexpected(ret.error()); -} - } // namespace u16 |
