compilerplugins/clang/methodcycles.partition.results | 2 - include/sfx2/sidebar/Deck.hxx | 2 - sfx2/source/sidebar/Deck.cxx | 31 ------------------- 3 files changed, 35 deletions(-)
New commits: commit 843f41917ec256ecc9122e13ea8f6da901cb50fb Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Mon Mar 15 15:56:32 2021 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Mon Mar 15 17:56:08 2021 +0100 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 <caol...@redhat.com> diff --git a/compilerplugins/clang/methodcycles.partition.results b/compilerplugins/clang/methodcycles.partition.results index e2d808845e1b..049fe2555a32 100644 --- a/compilerplugins/clang/methodcycles.partition.results +++ b/compilerplugins/clang/methodcycles.partition.results @@ -10,5 +10,3 @@ sax/source/tools/fastserializer.hxx:184 SvTreeListEntry * SvTabListBox::InsertEntryToColumn(const rtl::OUString &,unsigned long,unsigned short,void *) include/vcl/svtabbx.hxx:86 -void sfx2::sidebar::Deck::PrintWindowSubTree(vcl::Window *,int) -include/sfx2/sidebar/Deck.hxx:69 diff --git a/include/sfx2/sidebar/Deck.hxx b/include/sfx2/sidebar/Deck.hxx index 69ac7f20de95..5122d7a63470 100644 --- a/include/sfx2/sidebar/Deck.hxx +++ b/include/sfx2/sidebar/Deck.hxx @@ -70,8 +70,6 @@ public: virtual void DumpAsPropertyTree(tools::JsonWriter&) override; - static void PrintWindowSubTree(vcl::Window* pRoot, int nIndentation); - sal_Int32 GetMinimalWidth() const { return mnMinimalWidth; } class ScrollContainerWindow final : public vcl::Window 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()); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits