From cfd2f7e4e5e8c9aa3ae98d29ed7ae9b917b561fa Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Thu, 3 Nov 2022 15:44:52 +0100 Subject: [PATCH] Removed the unnecessary applyTheme function from NinePatchComponent. --- es-core/src/components/NinePatchComponent.cpp | 17 ----------------- es-core/src/components/NinePatchComponent.h | 5 ----- 2 files changed, 22 deletions(-) diff --git a/es-core/src/components/NinePatchComponent.cpp b/es-core/src/components/NinePatchComponent.cpp index 1bce309b5..9f810f945 100644 --- a/es-core/src/components/NinePatchComponent.cpp +++ b/es-core/src/components/NinePatchComponent.cpp @@ -170,20 +170,3 @@ void NinePatchComponent::setCenterColor(unsigned int centerColor) mCenterColor = centerColor; updateColors(); } - -void NinePatchComponent::applyTheme(const std::shared_ptr& theme, - const std::string& view, - const std::string& element, - unsigned int properties) -{ - GuiComponent::applyTheme(theme, view, element, properties); - - using namespace ThemeFlags; - const ThemeData::ThemeElement* elem {theme->getElement(view, element, "ninepatch")}; - - if (!elem) - return; - - if (properties & PATH && elem->has("path")) - setImagePath(elem->get("path")); -} diff --git a/es-core/src/components/NinePatchComponent.h b/es-core/src/components/NinePatchComponent.h index a989e871a..0a05c1ab7 100644 --- a/es-core/src/components/NinePatchComponent.h +++ b/es-core/src/components/NinePatchComponent.h @@ -45,11 +45,6 @@ public: // Apply a color shift to the "center" part of the ninepatch. void setCenterColor(unsigned int centerColor); - virtual void applyTheme(const std::shared_ptr& theme, - const std::string& view, - const std::string& element, - unsigned int properties) override; - const glm::vec2& getCornerSize() const { return mCornerSize; } void setCornerSize(const glm::vec2& size) {