diff --git a/repertory/librepertory/src/drives/eviction.cpp b/repertory/librepertory/src/drives/eviction.cpp index 75c29fb4..81fa3fb5 100644 --- a/repertory/librepertory/src/drives/eviction.cpp +++ b/repertory/librepertory/src/drives/eviction.cpp @@ -38,18 +38,6 @@ auto eviction::check_minimum_requirements(const std::string &file_path) auto check_file = utils::file::file{file_path}; - auto opt_size = check_file.size(); - if (not opt_size.has_value()) { - utils::error::raise_error(function_name, utils::get_last_error_code(), - file_path, "failed to get file size"); - return false; - } - - auto file_size{opt_size.value()}; - if (file_size == 0U) { - return false; - } - auto reference_time = check_file.get_time(config_.get_eviction_uses_accessed_time() ? utils::file::time_type::accessed