aboutsummaryrefslogtreecommitdiff
path: root/src/ui/controls
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-02-10 19:49:06 +0800
committercrupest <crupest@outlook.com>2022-02-10 19:49:06 +0800
commitc1dbad5fdf0560983e6c832eddded6f610eae94e (patch)
tree40f22f7e6aa7ef39c49b1c007beed37130fc0b5d /src/ui/controls
parentb2622f654598f82a220a98daaa84fed9ce3b92b2 (diff)
downloadcru-c1dbad5fdf0560983e6c832eddded6f610eae94e.tar.gz
cru-c1dbad5fdf0560983e6c832eddded6f610eae94e.tar.bz2
cru-c1dbad5fdf0560983e6c832eddded6f610eae94e.zip
...
Diffstat (limited to 'src/ui/controls')
-rw-r--r--src/ui/controls/TextBlock.cpp9
-rw-r--r--src/ui/controls/Window.cpp4
2 files changed, 0 insertions, 13 deletions
diff --git a/src/ui/controls/TextBlock.cpp b/src/ui/controls/TextBlock.cpp
index 80d9fe34..f3d2405b 100644
--- a/src/ui/controls/TextBlock.cpp
+++ b/src/ui/controls/TextBlock.cpp
@@ -8,15 +8,6 @@
namespace cru::ui::controls {
using render::TextRenderObject;
-TextBlock* TextBlock::Create() { return new TextBlock(); }
-
-TextBlock* TextBlock::Create(String text, bool selectable) {
- auto c = new TextBlock();
- c->SetText(text);
- c->SetSelectable(selectable);
- return c;
-}
-
TextBlock::TextBlock() {
const auto theme_manager = ThemeManager::GetInstance();
diff --git a/src/ui/controls/Window.cpp b/src/ui/controls/Window.cpp
index 6891c918..b1881136 100644
--- a/src/ui/controls/Window.cpp
+++ b/src/ui/controls/Window.cpp
@@ -1,10 +1,6 @@
#include "cru/ui/controls/Window.h"
namespace cru::ui::controls {
-Window* Window::Create(Control* attached_control) {
- return new Window(attached_control);
-}
-
Window::Window(Control* attached_control) : RootControl(attached_control) {}
Window::~Window() {}