From 587527e418552d1bc6aa1513d892feb8f597cf7a Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Mon, 2 Dec 2024 12:12:05 -0600 Subject: [PATCH] evict 0 byte files --- repertory/librepertory/src/drives/eviction.cpp | 12 ------------ 1 file changed, 12 deletions(-) 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