From c8f8f66a07caed922b49c52897d9fbf14816098c Mon Sep 17 00:00:00 2001 From: MihailRis Date: Thu, 26 Jun 2025 22:56:51 +0300 Subject: [PATCH] refactor: remove Button::textSupplier --- src/graphics/ui/elements/Button.cpp | 7 ------- src/graphics/ui/elements/Button.hpp | 2 -- 2 files changed, 9 deletions(-) diff --git a/src/graphics/ui/elements/Button.cpp b/src/graphics/ui/elements/Button.cpp index 5ea358ca..ef2142ea 100644 --- a/src/graphics/ui/elements/Button.cpp +++ b/src/graphics/ui/elements/Button.cpp @@ -69,13 +69,6 @@ std::wstring Button::getText() const { return L""; } -Button* Button::textSupplier(wstringsupplier supplier) { - if (label) { - label->textSupplier(std::move(supplier)); - } - return this; -} - void Button::refresh() { Panel::refresh(); if (label) { diff --git a/src/graphics/ui/elements/Button.hpp b/src/graphics/ui/elements/Button.hpp index 8936dd15..f4e51d2a 100644 --- a/src/graphics/ui/elements/Button.hpp +++ b/src/graphics/ui/elements/Button.hpp @@ -33,8 +33,6 @@ namespace gui { virtual void setText(std::wstring text); virtual std::wstring getText() const; - virtual Button* textSupplier(wstringsupplier supplier); - virtual void refresh() override; }; }