diff --git a/checked-file-impl.hh b/checked-file-impl.hh index c4607bcb9174..1c45157c06e2 100644 --- a/checked-file-impl.hh +++ b/checked-file-impl.hh @@ -130,7 +130,7 @@ inline file make_checked_file(const io_error_handler& error_handler, file f) future inline open_checked_file_dma(const io_error_handler& error_handler, sstring name, open_flags flags, - file_open_options options) + file_open_options options = {}) { return do_io_check(error_handler, [&] { return open_file_dma(name, flags, options).then([&] (file f) { @@ -139,17 +139,6 @@ inline open_checked_file_dma(const io_error_handler& error_handler, }); } -future -inline open_checked_file_dma(const io_error_handler& error_handler, - sstring name, open_flags flags) -{ - return do_io_check(error_handler, [&] { - return open_file_dma(name, flags).then([&] (file f) { - return make_ready_future(make_checked_file(error_handler, f)); - }); - }); -} - future inline open_checked_directory(const io_error_handler& error_handler, sstring name)