aboutsummaryrefslogtreecommitdiff
path: root/src/ui/controls/LayoutControl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/controls/LayoutControl.cpp')
-rw-r--r--src/ui/controls/LayoutControl.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/ui/controls/LayoutControl.cpp b/src/ui/controls/LayoutControl.cpp
deleted file mode 100644
index 5c67bc86..00000000
--- a/src/ui/controls/LayoutControl.cpp
+++ /dev/null
@@ -1,24 +0,0 @@
-#include "cru/ui/controls/LayoutControl.h"
-
-#include "cru/ui/render/RenderObject.h"
-
-namespace cru::ui::controls {
-void LayoutControl::ClearChildren() {
- while (GetChildren().size() > 0) {
- RemoveChild(0);
- }
-}
-
-void LayoutControl::OnAddChild(Control* child, Index position) {
- if (container_render_object_ != nullptr) {
- container_render_object_->AddChild(child->GetRenderObject(), position);
- }
-}
-
-void LayoutControl::OnRemoveChild(Control* child, Index position) {
- CRU_UNUSED(child)
- if (container_render_object_ != nullptr) {
- container_render_object_->RemoveChild(position);
- }
-}
-} // namespace cru::ui::controls