diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-24 09:29:06 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-24 12:12:22 +0000 |
commit | 9afdc72df60811435587b85ef333ee29d1d3ce15 (patch) | |
tree | 37749685c4c2e00cfe185159c4620f11b754414b /sfx2 | |
parent | ca949408b89c990edb6321d59db9eed6d29d21a7 (diff) |
callcatcher: update unused code
Change-Id: I48990c044e4583e835f3e995527ba423e8c459fb
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/sidebar/Deck.cxx | 16 | ||||
-rw-r--r-- | sfx2/source/sidebar/Deck.hxx | 5 | ||||
-rw-r--r-- | sfx2/source/sidebar/Panel.cxx | 23 | ||||
-rw-r--r-- | sfx2/source/sidebar/Panel.hxx | 4 |
4 files changed, 1 insertions, 47 deletions
diff --git a/sfx2/source/sidebar/Deck.cxx b/sfx2/source/sidebar/Deck.cxx index 8eaf4706d56c..8cb6e834edfc 100644 --- a/sfx2/source/sidebar/Deck.cxx +++ b/sfx2/source/sidebar/Deck.cxx @@ -364,27 +364,11 @@ void Deck::PrintWindowSubTree (Window* pRoot, int nIndentation) PrintWindowSubTree(pRoot->GetChild(nIndex), nIndentation+1); } - - - void Deck::PrintWindowTree (void) { PrintWindowSubTree(this, 0); } - - -#ifdef DEBUG -void Deck::PrintWindowTree (const ::std::vector<Panel*>& rPanels) -{ - (void)rPanels; - - PrintWindowTree(); -} -#endif - - - IMPL_LINK(Deck, HandleVerticalScrollBarChange,void*, EMPTYARG) { const sal_Int32 nYOffset (-mpVerticalScrollBar->GetThumbPos()); diff --git a/sfx2/source/sidebar/Deck.hxx b/sfx2/source/sidebar/Deck.hxx index 63c014f4161b..5a0850ce7a61 100644 --- a/sfx2/source/sidebar/Deck.hxx +++ b/sfx2/source/sidebar/Deck.hxx @@ -69,10 +69,7 @@ public: virtual void DataChanged (const DataChangedEvent& rEvent); virtual bool Notify (NotifyEvent& rEvent); - void PrintWindowTree (void); -#ifdef DEBUG - void PrintWindowTree (const ::std::vector<Panel*>& rPanels); -#endif + void PrintWindowTree(); static void PrintWindowSubTree (Window* pRoot, int nIndentation); sal_Int32 GetMinimalWidth() const { return mnMinimalWidth; } diff --git a/sfx2/source/sidebar/Panel.cxx b/sfx2/source/sidebar/Panel.cxx index 9a9fd85741dc..53c805fd02e8 100644 --- a/sfx2/source/sidebar/Panel.cxx +++ b/sfx2/source/sidebar/Panel.cxx @@ -223,34 +223,11 @@ void Panel::DataChanged (const DataChangedEvent& rEvent) SetBackground(Theme::GetPaint(Theme::Paint_PanelBackground).GetWallpaper()); } - - - Reference<ui::XSidebarPanel> Panel::GetPanelComponent (void) const { return mxPanelComponent; } - - - -#ifdef DEBUG -void Panel::PrintWindowTree (void) -{ - Window* pElementWindow = VCLUnoHelper::GetWindow(GetElementWindow()); - if (pElementWindow != NULL) - { - OSL_TRACE("panel parent is %x", pElementWindow->GetParent()); - Deck::PrintWindowSubTree(pElementWindow, 2); - } - else - OSL_TRACE(" panel is empty"); -} -#endif - - - - Reference<awt::XWindow> Panel::GetElementWindow (void) { if (mxElement.is()) diff --git a/sfx2/source/sidebar/Panel.hxx b/sfx2/source/sidebar/Panel.hxx index cd3e63512eac..fb902c8f1d0f 100644 --- a/sfx2/source/sidebar/Panel.hxx +++ b/sfx2/source/sidebar/Panel.hxx @@ -68,10 +68,6 @@ public: virtual void DataChanged (const DataChangedEvent& rEvent); virtual void Activate (void); -#ifdef DEBUG - void PrintWindowTree (void); -#endif - private: const ::rtl::OUString msPanelId; ::boost::scoped_ptr<PanelTitleBar> mpTitleBar; |