diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2020-11-24 08:59:11 +0100 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2020-11-24 10:45:43 +0100 |
commit | cd8bf886ac66511b06686886a301fbd8bfa6c87a (patch) | |
tree | abb90587e7429813ef4e01f59eeb642f3803edee | |
parent | 3626a0f6d41c144b7d4d1b1726895344a8388445 (diff) |
Remove unused ScrollBarBox from tabpage
This displays an empty rectangle at the upper left of the tabpage.
Change-Id: I8424a3f8ec4896814b135aa2c86012f0b33ee1be
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106479
Tested-by: Michael Weghorn <m.weghorn@posteo.de>
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
-rw-r--r-- | include/vcl/tabpage.hxx | 2 | ||||
-rw-r--r-- | vcl/source/window/tabpage.cxx | 5 |
2 files changed, 0 insertions, 7 deletions
diff --git a/include/vcl/tabpage.hxx b/include/vcl/tabpage.hxx index e69c45585b74..857929df3296 100644 --- a/include/vcl/tabpage.hxx +++ b/include/vcl/tabpage.hxx @@ -26,7 +26,6 @@ #include <vcl/IContext.hxx> class ScrollBar; -class ScrollBarBox; class VCL_DLLPUBLIC TabPage : public vcl::Window @@ -42,7 +41,6 @@ private: VclPtr<ScrollBar> m_pVScroll; VclPtr<ScrollBar> m_pHScroll; - VclPtr<ScrollBarBox> m_aScrollBarBox; Size maScrollArea; bool mbHasHoriBar; bool mbHasVertBar; diff --git a/vcl/source/window/tabpage.cxx b/vcl/source/window/tabpage.cxx index 2f475bf700bd..0f37af8369b0 100644 --- a/vcl/source/window/tabpage.cxx +++ b/vcl/source/window/tabpage.cxx @@ -57,10 +57,6 @@ void TabPage::ImplInit( vcl::Window* pParent, WinBits nStyle ) if ( mbHasHoriBar || mbHasVertBar ) { - m_aScrollBarBox.set( - VclPtr<ScrollBarBox>::Create(this, - ((nStyle & (WB_VSCROLL|WB_HSCROLL)) ? WB_HIDE : 0))); - m_aScrollBarBox->Show(); SetStyle( GetStyle() | WB_CLIPCHILDREN ); } @@ -125,7 +121,6 @@ void TabPage::dispose() disposeBuilder(); m_pVScroll.disposeAndClear(); m_pHScroll.disposeAndClear(); - m_aScrollBarBox.disposeAndClear(); vcl::Window::dispose(); } |