diff --git a/include/FS_Info.h b/include/FS_Info.h index 19c2e10f..b3fb315e 100644 --- a/include/FS_Info.h +++ b/include/FS_Info.h @@ -49,7 +49,6 @@ private: static bool not_initialised_then_error(); static void set_commands_found(); static const FS_Entry & get_cache_entry_by_path( const Glib::ustring & path ); - static void load_fs_info_cache(const std::vector& paths); static bool run_blkid_load_cache(const std::vector& paths); static void update_fs_info_cache_all_labels(); static bool run_blkid_update_cache_one_label( FS_Entry & fs_entry ); diff --git a/src/FS_Info.cc b/src/FS_Info.cc index dbfba9a6..8e9b3625 100644 --- a/src/FS_Info.cc +++ b/src/FS_Info.cc @@ -54,7 +54,8 @@ std::vector FS_Info::fs_info_cache; void FS_Info::load_cache_for_paths(const std::vector& paths) { set_commands_found(); - load_fs_info_cache(paths); + fs_info_cache.clear(); + run_blkid_load_cache(paths); fs_info_cache_initialized = true; } @@ -206,13 +207,6 @@ const FS_Entry & FS_Info::get_cache_entry_by_path( const Glib::ustring & path ) } -void FS_Info::load_fs_info_cache(const std::vector& paths) -{ - fs_info_cache.clear(); - run_blkid_load_cache(paths); -} - - bool FS_Info::run_blkid_load_cache(const std::vector& paths) { // Parse blkid output line by line extracting mandatory field: path and optional