From 9dfef8c22987c12a6aad47a8913e60943d8578e7 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 14 May 2021 16:40:49 +0200 Subject: Move thumbnail loading/unloading to AsyncImageLoader --- include/Body.hpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'include/Body.hpp') diff --git a/include/Body.hpp b/include/Body.hpp index 48eb45f..b5ca210 100644 --- a/include/Body.hpp +++ b/include/Body.hpp @@ -206,7 +206,6 @@ namespace QuickMedia { void insert_items_by_timestamps(BodyItems new_items); void clear_cache(); void clear_text_cache(); - void clear_thumbnails(); BodyItem* get_selected() const; std::shared_ptr get_selected_shared(); @@ -278,7 +277,6 @@ namespace QuickMedia { float get_offset_to_last_visible_item(sf::Vector2f body_size); private: Program *program; - std::unordered_map> item_thumbnail_textures; int selected_item; int prev_selected_item; double page_scroll; @@ -316,7 +314,6 @@ namespace QuickMedia { sf::Vector2f body_size; float selected_item_height = 0.0f; float selected_scrolled = 0.0f; - bool loaded_textures_changed = false; std::shared_ptr clicked_body_item = nullptr; RoundedRectangle item_background; RoundedRectangle reaction_background; -- cgit v1.2.3