diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-04-09 10:15:47 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-04-09 10:15:47 +0200 |
commit | fa72a0e94dab1a02c067e8e629f68a548bf2492b (patch) | |
tree | 2cb09e00a0cae8a126d9c2cfea279668d0e45e98 /svtools/source/control | |
parent | cc725643fded8c9237403f12bb6eed9d964e55c9 (diff) |
Remove unused code
Change-Id: Ifaab2aecec65ec6e81056e5fca430df8ca3af908
Diffstat (limited to 'svtools/source/control')
-rw-r--r-- | svtools/source/control/hyperlabel.cxx | 24 | ||||
-rw-r--r-- | svtools/source/control/roadmap.cxx | 29 | ||||
-rw-r--r-- | svtools/source/control/scriptedtext.cxx | 2 | ||||
-rw-r--r-- | svtools/source/control/tabbar.cxx | 5 |
4 files changed, 1 insertions, 59 deletions
diff --git a/svtools/source/control/hyperlabel.cxx b/svtools/source/control/hyperlabel.cxx index 6a8abff90512..cd7a10ddf89f 100644 --- a/svtools/source/control/hyperlabel.cxx +++ b/svtools/source/control/hyperlabel.cxx @@ -27,30 +27,6 @@ namespace svt { - - - - //= FontChanger - - class FontChanger - { - protected: - OutputDevice* m_pDev; - - public: - FontChanger( OutputDevice* _pDev, const Font& _rNewFont ) - :m_pDev( _pDev ) - { - m_pDev->Push( PUSH_FONT ); - m_pDev->SetFont( _rNewFont ); - } - - ~FontChanger() - { - m_pDev->Pop( ); - } - }; - class HyperLabelImpl { public: diff --git a/svtools/source/control/roadmap.cxx b/svtools/source/control/roadmap.cxx index 11d3de4b4dd3..aeef0ffb28c0 100644 --- a/svtools/source/control/roadmap.cxx +++ b/svtools/source/control/roadmap.cxx @@ -50,32 +50,6 @@ namespace svt virtual void DataChanged( const DataChangedEvent& rDCEvt ) SAL_OVERRIDE; }; - - //= ColorChanger - - class ColorChanger - { - protected: - OutputDevice* m_pDev; - - public: - ColorChanger( OutputDevice* _pDev, const Color& _rNewLineColor, const Color& _rNewFillColor ) - :m_pDev( _pDev ) - { - m_pDev->Push( PUSH_LINECOLOR | PUSH_FILLCOLOR ); - m_pDev->SetLineColor( _rNewLineColor ); - m_pDev->SetFillColor( _rNewFillColor ); - } - - ~ColorChanger() - { - m_pDev->Pop(); - } - }; - - - //= RoadmapItem - class RoadmapItem : public RoadmapTypes { private: @@ -141,10 +115,7 @@ namespace svt RoadmapItem* InCompleteHyperLabel; - void addHyperLabel( RoadmapItem* _rRoadmapStep ) { m_aRoadmapSteps.push_back(_rRoadmapStep); } - HL_Vector& getHyperLabels() { return m_aRoadmapSteps; } - const HL_Vector& getHyperLabels() const { return m_aRoadmapSteps; } void insertHyperLabel( ItemIndex _Index, RoadmapItem* _rRoadmapStep ) { m_aRoadmapSteps.insert( m_aRoadmapSteps.begin() + _Index, _rRoadmapStep ); } diff --git a/svtools/source/control/scriptedtext.cxx b/svtools/source/control/scriptedtext.cxx index acc1ab752566..798885b9f7c0 100644 --- a/svtools/source/control/scriptedtext.cxx +++ b/svtools/source/control/scriptedtext.cxx @@ -50,7 +50,7 @@ private: Size maTextSize; /// The size the text will take in the current output device. /** Assignment operator not implemented to prevent usage. */ - SvtScriptedTextHelper_Impl& operator=( const SvtScriptedTextHelper_Impl& ); + SvtScriptedTextHelper_Impl& operator=( const SvtScriptedTextHelper_Impl& ) SAL_DELETED_FUNCTION; /** Gets the font of the given script type. */ const Font& GetFont( sal_uInt16 _nScript ) const; diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx index 6f293bb953e7..b3727f3820b1 100644 --- a/svtools/source/control/tabbar.cxx +++ b/svtools/source/control/tabbar.cxx @@ -80,11 +80,6 @@ struct ImplTabBarItem return maTabBgColor == Color(COL_AUTO); } - bool IsDefaultTabTextColor() const - { - return maTabTextColor == Color(COL_AUTO); - } - bool IsSelected(ImplTabBarItem* pCurItem) const { return mbSelect || (pCurItem == this); |