summaryrefslogtreecommitdiff
path: root/svx/source/styles
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-05-13 15:16:58 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-05-13 17:56:14 +0200
commitbd537420b07fc82bd9a3eb01f3e5b3b33c21a5cb (patch)
treed03e7acfa277f07a8d0769e808a019ecc68f32e8 /svx/source/styles
parentd2cb44507708af41e9ee408c4db08c5bc7b13b43 (diff)
loplugin:unusedmethods
Change-Id: Id813d95a90fdbb360dfc8670c0b55b635f633965 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94125 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/styles')
-rw-r--r--svx/source/styles/CommonStylePreviewRenderer.cxx9
1 files changed, 0 insertions, 9 deletions
diff --git a/svx/source/styles/CommonStylePreviewRenderer.cxx b/svx/source/styles/CommonStylePreviewRenderer.cxx
index 6d77c18be8a6..d677a135461e 100644
--- a/svx/source/styles/CommonStylePreviewRenderer.cxx
+++ b/svx/source/styles/CommonStylePreviewRenderer.cxx
@@ -171,15 +171,6 @@ bool CommonStylePreviewRenderer::recalculate()
return true;
}
-Size CommonStylePreviewRenderer::getRenderSize()
-{
- assert(m_pFont);
- maPixelSize = m_pFont->GetTextSize(&mrOutputDev, maStyleName);
- if (maPixelSize.Height() > mnMaxHeight)
- maPixelSize.setHeight( mnMaxHeight );
- return maPixelSize;
-}
-
bool CommonStylePreviewRenderer::render(const tools::Rectangle& aRectangle, RenderAlign eRenderAlign)
{
const OUString& rText = maStyleName;