summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-04-20 13:39:38 +0200
committerTomaž Vajngerl <quikee@gmail.com>2018-04-21 04:12:04 +0200
commit94acabe8d0cb555e76635c4bceeb48a14bd16a2b (patch)
tree5342dac802e5ae009c12734bb2d23e482a6166f1 /sd
parent9374352f242d2dcfd39a3a6f0504efbaf1abb2dc (diff)
loplugin:unusedmethods
Change-Id: I9dc6e81149eae3ba2284fa7fe608dd9252503dce Reviewed-on: https://gerrit.libreoffice.org/53197 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/dlg/docprev.cxx22
-rw-r--r--sd/source/ui/inc/docprev.hxx1
2 files changed, 0 insertions, 23 deletions
diff --git a/sd/source/ui/dlg/docprev.cxx b/sd/source/ui/dlg/docprev.cxx
index f0a5a89209ec..8b528baa2d36 100644
--- a/sd/source/ui/dlg/docprev.cxx
+++ b/sd/source/ui/dlg/docprev.cxx
@@ -87,28 +87,6 @@ void SdDocPreviewWin::Resize()
mxSlideShow->resize( GetSizePixel() );
}
-void SdDocPreviewWin::CalcSizeAndPos( Size& rSize, Point& rPoint )
-{
- long nWidth = rSize.Width() - 2*FRAME;
- long nHeight = rSize.Height() - 2*FRAME;
- if( nWidth < 0 ) nWidth = 0;
- if( nHeight < 0 ) nHeight = 0;
-
- double dRatio = 1;
- double dRatioPreV = nHeight ? (static_cast<double>(nWidth) / nHeight) : 0.0;
-
- if (dRatio > dRatioPreV)
- {
- rSize=Size(nWidth, static_cast<sal_uInt16>(nWidth/dRatio));
- rPoint=Point( 0, static_cast<sal_uInt16>((nHeight-rSize.Height())/2));
- }
- else
- {
- rSize=Size(static_cast<sal_uInt16>(nHeight*dRatio), nHeight);
- rPoint=Point(static_cast<sal_uInt16>((nWidth-rSize.Width())/2),0);
- }
-}
-
void SdDocPreviewWin::ImpPaint( OutputDevice* pVDev )
{
svtools::ColorConfig aColorConfig;
diff --git a/sd/source/ui/inc/docprev.hxx b/sd/source/ui/inc/docprev.hxx
index 8f0a28dad280..f5df073d6558 100644
--- a/sd/source/ui/inc/docprev.hxx
+++ b/sd/source/ui/inc/docprev.hxx
@@ -42,7 +42,6 @@ class SD_DLLPUBLIC SdDocPreviewWin final : public Control, public SfxListener
virtual void Paint( vcl::RenderContext& rRenderContext, const ::tools::Rectangle& rRect ) override;
virtual Size GetOptimalSize() const override;
- static void CalcSizeAndPos( Size& rSize, Point& rPoint );
static void ImpPaint( OutputDevice* pVDev );
static const int FRAME;