summaryrefslogtreecommitdiff
path: root/canvas
diff options
context:
space:
mode:
authorNoel <noel.grandin@collabora.co.uk>2021-01-16 19:03:57 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-01-16 20:08:14 +0100
commit4499eb5b868b54512751b4e73c68df2a79e22606 (patch)
tree906f27380580b4e26ee22e9d3eb98e26a89436fa /canvas
parent9e6f2b5eb712cc483d735132b0557dee4e593193 (diff)
return value from setupOutDevState is unused
Change-Id: Ic3006e3f73c5b1233076706d5982fefe12b8d511 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109448 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'canvas')
-rw-r--r--canvas/source/cairo/cairo_canvashelper_text.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/canvas/source/cairo/cairo_canvashelper_text.cxx b/canvas/source/cairo/cairo_canvashelper_text.cxx
index 056ae519201f..2763800d5283 100644
--- a/canvas/source/cairo/cairo_canvashelper_text.cxx
+++ b/canvas/source/cairo/cairo_canvashelper_text.cxx
@@ -108,7 +108,7 @@ namespace cairocanvas
return true;
}
- static int
+ static void
setupOutDevState( OutputDevice& rOutDev,
const rendering::XCanvas* pOwner,
const rendering::ViewState& viewState,
@@ -120,8 +120,6 @@ namespace cairocanvas
2,
3 /* text */ );
- int nTransparency(0);
-
// TODO(P2): Don't change clipping all the time, maintain current clip
// state and change only when update is necessary
::canvas::tools::clipOutDev(viewState, renderState, rOutDev);
@@ -135,12 +133,9 @@ namespace cairocanvas
// extract alpha, and make color opaque
// afterwards. Otherwise, OutputDevice won't draw anything
- nTransparency = 255 - aColor.GetAlpha();
aColor.SetAlpha(255);
rOutDev.SetTextColor( aColor );
-
- return nTransparency;
}
namespace {