aboutsummaryrefslogtreecommitdiff
path: root/src/ui/control.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2019-03-23 23:52:07 +0800
committercrupest <crupest@outlook.com>2019-03-23 23:52:07 +0800
commite8be3841457853daefc26d0ca00256ad8c44f593 (patch)
tree66d9204423c3887ebc7d781d13d815ae0443d620 /src/ui/control.cpp
parent2ecfdaa20d8436948e4a73da73d6a11b78e88371 (diff)
downloadcru-e8be3841457853daefc26d0ca00256ad8c44f593.tar.gz
cru-e8be3841457853daefc26d0ca00256ad8c44f593.tar.bz2
cru-e8be3841457853daefc26d0ca00256ad8c44f593.zip
...
Diffstat (limited to 'src/ui/control.cpp')
-rw-r--r--src/ui/control.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/ui/control.cpp b/src/ui/control.cpp
index 5c629fd6..318d591a 100644
--- a/src/ui/control.cpp
+++ b/src/ui/control.cpp
@@ -55,15 +55,6 @@ bool Control::HasFocus() {
return window->GetFocusControl() == this;
}
-void Control::SetCursor(const Cursor::Ptr& cursor) {
- if (cursor != cursor_) {
- cursor_ = cursor;
- const auto window = GetWindow();
- if (window && window->GetMouseHoverControl() == this)
- window->UpdateCursor();
- }
-}
-
void Control::OnParentChanged(Control* old_parent, Control* new_parent) {}
void Control::OnAttachToWindow(Window* window) {}