summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-03-15 15:56:32 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-03-15 17:56:08 +0100
commit843f41917ec256ecc9122e13ea8f6da901cb50fb (patch)
tree37065541261026605964de2e2bb4fe203e2a7213
parent3e73d3475711b790cc80b9a286c5d454f3929384 (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>
-rw-r--r--compilerplugins/clang/methodcycles.partition.results2
-rw-r--r--include/sfx2/sidebar/Deck.hxx2
-rw-r--r--sfx2/source/sidebar/Deck.cxx31
3 files changed, 0 insertions, 35 deletions
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());