diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-03-15 15:56:32 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-03-15 17:56:08 +0100 |
commit | 843f41917ec256ecc9122e13ea8f6da901cb50fb (patch) | |
tree | 37065541261026605964de2e2bb4fe203e2a7213 /sfx2/source | |
parent | 3e73d3475711b790cc80b9a286c5d454f3929384 (diff) |
drop PrintWindowSubTree that is only callable by itself
Change-Id: I14ec71ca429e60f7e350c92534db6d983a559c61
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112536
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2/source')
-rw-r--r-- | sfx2/source/sidebar/Deck.cxx | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/sfx2/source/sidebar/Deck.cxx b/sfx2/source/sidebar/Deck.cxx index 0a3a925aa89c..0beb6376c8f0 100644 --- a/sfx2/source/sidebar/Deck.cxx +++ b/sfx2/source/sidebar/Deck.cxx @@ -366,37 +366,6 @@ void Deck::ShowPanel(const Panel& rPanel) -nNewThumbPos)); } -static OUString GetWindowClassification(const vcl::Window* pWindow) -{ - const OUString& rsName (pWindow->GetText()); - if (!rsName.isEmpty()) - { - return rsName; - } - else - { - return "window"; - } -} - -void Deck::PrintWindowSubTree(vcl::Window* pRoot, int nIndentation) -{ - static const char* const sIndentation = " "; - const Point aLocation (pRoot->GetPosPixel()); - const Size aSize (pRoot->GetSizePixel()); - SAL_INFO( - "sfx.sidebar", - sIndentation + strlen(sIndentation) - nIndentation * 4 << pRoot << " " - << GetWindowClassification(pRoot) << " " - << (pRoot->IsVisible() ? "visible" : "hidden") << " +" - << aLocation.X() << "+" << aLocation.Y() << " x" << aSize.Width() - << "x" << aSize.Height()); - - const sal_uInt16 nChildCount(pRoot->GetChildCount()); - for (sal_uInt16 nIndex = 0; nIndex < nChildCount; ++nIndex) - PrintWindowSubTree(pRoot->GetChild(nIndex), nIndentation + 1); -} - IMPL_LINK_NOARG(Deck, HandleVerticalScrollBarChange, ScrollBar*, void) { const sal_Int32 nYOffset (-mpVerticalScrollBar->GetThumbPos()); |