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) {