diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-18 10:06:16 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-19 13:53:36 +0100 |
commit | 2c2d0c07b2120c5fe4333e7fed12bd59996c2972 (patch) | |
tree | aa71e3df5e52ef2710b40535f8692a98f9925f9f /sw/source/core | |
parent | 8960ecc689ce41cfaa40b65d75830d7491b06463 (diff) |
loplugin:unusedmethods
Change-Id: I3ffd9142fed98e4df75c2c28f8a025be3e8eb803
Reviewed-on: https://gerrit.libreoffice.org/46687
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core')
-rw-r--r-- | sw/source/core/inc/frame.hxx | 3 | ||||
-rw-r--r-- | sw/source/core/layout/ssfrm.cxx | 45 |
2 files changed, 0 insertions, 48 deletions
diff --git a/sw/source/core/inc/frame.hxx b/sw/source/core/inc/frame.hxx index 684a9e13a3d0..9d3ca61708de 100644 --- a/sw/source/core/inc/frame.hxx +++ b/sw/source/core/inc/frame.hxx @@ -849,7 +849,6 @@ public: long GetLeftMargin() const; long GetRightMargin() const; void SetTopBottomMargins( long, long ); - void SetBottomTopMargins( long, long ); void SetLeftRightMargins( long, long ); void SetRightLeftMargins( long, long ); long GetPrtLeft() const; @@ -859,9 +858,7 @@ public: bool SetMinLeft( long ); bool SetMaxBottom( long ); bool SetMaxRight( long ); - bool SetMinTop( long ); void MakeBelowPos( const SwFrame*, const SwFrame*, bool ); - void MakeUpperPos( const SwFrame*, const SwFrame*, bool ); void MakeLeftPos( const SwFrame*, const SwFrame*, bool ); void MakeRightPos( const SwFrame*, const SwFrame*, bool ); bool IsNeighbourFrame() const diff --git a/sw/source/core/layout/ssfrm.cxx b/sw/source/core/layout/ssfrm.cxx index 0e4695dd2c56..9934d1c4b4dd 100644 --- a/sw/source/core/layout/ssfrm.cxx +++ b/sw/source/core/layout/ssfrm.cxx @@ -82,22 +82,6 @@ bool SwFrame::SetMaxBottom( long nDeadline ) return false; } -bool SwFrame::SetMinTop( long nDeadline ) -{ - SwTwips nDiff = nDeadline - getFrameArea().Top(); - if( nDiff > 0 ) - { - SwFrameAreaDefinition::FrameAreaWriteAccess aFrm(*this); - aFrm.Top( nDeadline ); - - SwFrameAreaDefinition::FramePrintAreaWriteAccess aPrt(*this); - aPrt.Height( aPrt.Height() - nDiff ); - - return true; - } - return false; -} - bool SwFrame::SetMaxRight( long nDeadline ) { SwTwips nDiff = getFrameArea().Left() + getFrameArea().Width() - nDeadline; @@ -135,28 +119,6 @@ void SwFrame::MakeBelowPos( const SwFrame* pUp, const SwFrame* pPrv, bool bNotif } } -void SwFrame::MakeUpperPos( const SwFrame* pUp, const SwFrame* pPrv, bool bNotify ) -{ - SwFrameAreaDefinition::FrameAreaWriteAccess aFrm(*this); - - if( pPrv ) - { - aFrm.Pos( pPrv->getFrameArea().Pos() ); - aFrm.Pos().Y() -= aFrm.Height(); - } - else - { - aFrm.Pos( pUp->getFrameArea().Pos() ); - aFrm.Pos() += pUp->getFramePrintArea().Pos(); - aFrm.Pos().Y() += pUp->getFramePrintArea().Height() - aFrm.Height(); - } - - if( bNotify ) - { - aFrm.Pos().Y() -= 1; - } -} - void SwFrame::MakeLeftPos( const SwFrame* pUp, const SwFrame* pPrv, bool bNotify ) { SwFrameAreaDefinition::FrameAreaWriteAccess aFrm(*this); @@ -207,13 +169,6 @@ void SwFrame::SetTopBottomMargins( long nTop, long nBot ) aPrt.Height( getFrameArea().Height() - nTop - nBot ); } -void SwFrame::SetBottomTopMargins( long nBot, long nTop ) -{ - SwFrameAreaDefinition::FramePrintAreaWriteAccess aPrt(*this); - aPrt.Top( nTop ); - aPrt.Height( getFrameArea().Height() - nTop - nBot ); -} - void SwFrame::SetLeftRightMargins( long nLeft, long nRight) { SwFrameAreaDefinition::FramePrintAreaWriteAccess aPrt(*this); |