From 3fcb846ecad9d05802e33233e2701f6102fdfd22 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Thu, 19 Dec 2024 13:10:27 -0600 Subject: [PATCH] refactor --- repertory/librepertory/src/drives/eviction.cpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/repertory/librepertory/src/drives/eviction.cpp b/repertory/librepertory/src/drives/eviction.cpp index bb98d194..d0a648fc 100644 --- a/repertory/librepertory/src/drives/eviction.cpp +++ b/repertory/librepertory/src/drives/eviction.cpp @@ -80,19 +80,7 @@ void eviction::service_function() { continue; } - api_file file{}; - filesystem_item fsi{}; - if (provider_.get_filesystem_item_and_file(api_path, file, fsi) != - api_error::success) { - continue; - } - - auto opt_size = utils::file::file{file_path}.size(); - if (not opt_size.has_value() || opt_size.value() != fsi.size) { - continue; - } - - file_mgr_.evict_file(fsi.api_path); + file_mgr_.evict_file(api_path); } catch (const std::exception &ex) { utils::error::raise_error( function_name, ex,