diff options
author | Linus Groh <mail@linusgroh.de> | 2021-05-03 22:21:21 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-05-03 22:21:21 +0100 |
commit | 0c1d1d97d5a63f1a62c15a42cdb62de07428f808 (patch) | |
tree | 75c0df82240abd71e2e2328fc56d3dde404e5471 | |
parent | 1ee31981daea1b4655b4edbcecba41a60a24bee8 (diff) | |
download | serenity-0c1d1d97d5a63f1a62c15a42cdb62de07428f808.zip |
LibGUI: Remove unused Scrollbar::{de,in}crement_gutter_rect()
-rw-r--r-- | Userland/Libraries/LibGUI/Scrollbar.cpp | 17 | ||||
-rw-r--r-- | Userland/Libraries/LibGUI/Scrollbar.h | 2 |
2 files changed, 0 insertions, 19 deletions
diff --git a/Userland/Libraries/LibGUI/Scrollbar.cpp b/Userland/Libraries/LibGUI/Scrollbar.cpp index bf2d277ea9..88deb7edb0 100644 --- a/Userland/Libraries/LibGUI/Scrollbar.cpp +++ b/Userland/Libraries/LibGUI/Scrollbar.cpp @@ -110,23 +110,6 @@ Gfx::IntRect Scrollbar::increment_button_rect() const return { width() - button_width(), 0, button_width(), button_height() }; } -Gfx::IntRect Scrollbar::decrement_gutter_rect() const -{ - if (orientation() == Orientation::Vertical) - return { 0, button_height(), button_width(), scrubber_rect().top() - button_height() }; - else - return { button_width(), 0, scrubber_rect().x() - button_width(), button_height() }; -} - -Gfx::IntRect Scrollbar::increment_gutter_rect() const -{ - auto scrubber_rect = this->scrubber_rect(); - if (orientation() == Orientation::Vertical) - return { 0, scrubber_rect.bottom() + 1, button_width(), height() - button_height() - scrubber_rect.bottom() - 1 }; - else - return { scrubber_rect.right() + 1, 0, width() - button_width() - scrubber_rect.right() - 1, button_width() }; -} - int Scrollbar::scrubbable_range_in_pixels() const { if (orientation() == Orientation::Vertical) diff --git a/Userland/Libraries/LibGUI/Scrollbar.h b/Userland/Libraries/LibGUI/Scrollbar.h index b7dff314a2..c9bff8f673 100644 --- a/Userland/Libraries/LibGUI/Scrollbar.h +++ b/Userland/Libraries/LibGUI/Scrollbar.h @@ -47,8 +47,6 @@ private: int button_height() const { return orientation() == Orientation::Horizontal ? height() : button_size(); } Gfx::IntRect decrement_button_rect() const; Gfx::IntRect increment_button_rect() const; - Gfx::IntRect decrement_gutter_rect() const; - Gfx::IntRect increment_gutter_rect() const; Gfx::IntRect scrubber_rect() const; int unclamped_scrubber_size() const; int visible_scrubber_size() const; |