diff --git a/src/gui/core/canvas.cpp b/src/gui/core/canvas.cpp index 0b83b69e010..eea8fca2b7f 100644 --- a/src/gui/core/canvas.cpp +++ b/src/gui/core/canvas.cpp @@ -253,8 +253,6 @@ image_shape::image_shape(const config& cfg, wfl::action_function_symbol_table& f , y_(cfg["y"]) , w_(cfg["w"]) , h_(cfg["h"]) - , src_clip_() - , image_() , image_name_(cfg["name"]) , resize_mode_(get_resize_mode(cfg["resize_mode"])) , mirror_(cfg.get_old_attribute("mirror", "vertical_mirror", "image")) @@ -306,9 +304,6 @@ void image_shape::draw(wfl::map_formula_callable& variables) return; } - // TODO: highdpi - this is never used, why is it set? - src_clip_ = {0, 0, tex.w(), tex.h()}; - wfl::map_formula_callable local_variables(variables); local_variables.add("image_original_width", wfl::variant(tex.w())); local_variables.add("image_original_height", wfl::variant(tex.h())); diff --git a/src/gui/core/canvas_private.hpp b/src/gui/core/canvas_private.hpp index fec4715f0c0..35edaab767f 100644 --- a/src/gui/core/canvas_private.hpp +++ b/src/gui/core/canvas_private.hpp @@ -332,14 +332,6 @@ private: typed_formula w_; /**< The width of the image. */ typed_formula h_; /**< The height of the image. */ - // TODO: highdpi - none of these cached items are ever used. Why is this here? - - /** Contains the size of the image. */ - SDL_Rect src_clip_; - - /** The image is cached in this surface. */ - texture image_; - /** * Name of the image. *