summaryrefslogtreecommitdiff
path: root/cppcanvas
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-12-08 14:59:51 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-12-09 07:18:17 +0100
commit0d43b791e60aa75eb7f769d0f9b3177f93e1591c (patch)
tree0f22f0ab1972013ff6c7cce91895d1b69c236dfb /cppcanvas
parent145280ffd1dabdc629c14c8162beef668741bcef (diff)
loplugin:unusedmethods
Change-Id: I4f2635d468c9ad83b3ac93733529e01a4d03f38e Reviewed-on: https://gerrit.libreoffice.org/64805 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cppcanvas')
-rw-r--r--cppcanvas/source/inc/implrenderer.hxx35
-rw-r--r--cppcanvas/source/mtfrenderer/implrenderer.cxx7
2 files changed, 0 insertions, 42 deletions
diff --git a/cppcanvas/source/inc/implrenderer.hxx b/cppcanvas/source/inc/implrenderer.hxx
index 26fc5046eede..30850a76fcf0 100644
--- a/cppcanvas/source/inc/implrenderer.hxx
+++ b/cppcanvas/source/inc/implrenderer.hxx
@@ -111,32 +111,6 @@ namespace cppcanvas
eDx = eDy = eM12 = eM21 = 0.0f;
}
- void Set (const XForm& f)
- {
- eM11 = f.eM11;
- eM12 = f.eM12;
- eM21 = f.eM21;
- eM22 = f.eM22;
- eDx = f.eDx;
- eDy = f.eDy;
- }
-
- // Multiple two square matrices
- // [ eM11, eM12, eDx ] [ f.eM11, f.eM12, f.eDx ]
- // [ eM21, eM22, eDy ] x [ f.eM21, f.eM22, f.eDy ]
- // [ 0, 0, 1 ] [ 0, 0, 1 ]
- // More information: https://en.wikipedia.org/wiki/Matrix_multiplication#Square_matrices
- // FIXME We shouldn't modify source matrix during computation
- void Multiply (const XForm& f)
- {
- eM11 = eM11*f.eM11 + eM12*f.eM21;
- eM12 = eM11*f.eM12 + eM12*f.eM22;
- eM21 = eM21*f.eM11 + eM22*f.eM21;
- eM22 = eM21*f.eM12 + eM22*f.eM22;
- eDx = eDx*f.eM11 + eDy*f.eM21 + f.eDx;
- eDy = eDx*f.eM12 + eDy*f.eM22 + f.eDy;
- }
-
friend SvStream& ReadXForm( SvStream& rIn, XForm& rXForm )
{
if ( sizeof( float ) != 4 )
@@ -246,19 +220,12 @@ namespace cppcanvas
ActionVector::const_iterator& o_rRangeBegin,
ActionVector::const_iterator& o_rRangeEnd ) const;
- void processObjectRecord(SvMemoryStream& rObjectStream, sal_uInt16 flags, sal_uInt32 dataSize, bool bUseWholeStream = false);
-
ActionVector maActions;
/* EMF+ */
XForm aBaseTransform;
XForm aWorldTransform;
std::unique_ptr<EMFPObject> aObjects [256];
- float fPageScale;
- sal_Int32 nOriginX;
- sal_Int32 nOriginY;
- sal_Int32 nHDPI;
- sal_Int32 nVDPI;
/* EMF+ emf header info */
sal_Int32 nFrameLeft;
sal_Int32 nFrameTop;
@@ -269,8 +236,6 @@ namespace cppcanvas
sal_Int32 nMmX;
sal_Int32 nMmY;
/* multipart object data */
- bool mbMultipart;
- sal_uInt16 mMFlags;
SvMemoryStream mMStream;
/* emf+ graphic state stack */
GraphicStateMap mGSStack;
diff --git a/cppcanvas/source/mtfrenderer/implrenderer.cxx b/cppcanvas/source/mtfrenderer/implrenderer.cxx
index 5c5b43fb3c89..9a41900a6208 100644
--- a/cppcanvas/source/mtfrenderer/implrenderer.cxx
+++ b/cppcanvas/source/mtfrenderer/implrenderer.cxx
@@ -2852,11 +2852,6 @@ namespace cppcanvas
const Parameters& rParams )
: CanvasGraphicHelper(rCanvas)
, maActions()
- , fPageScale(0.0)
- , nOriginX(0)
- , nOriginY(0)
- , nHDPI(0)
- , nVDPI(0)
, nFrameLeft(0)
, nFrameTop(0)
, nFrameRight(0)
@@ -2865,8 +2860,6 @@ namespace cppcanvas
, nPixY(0)
, nMmX(0)
, nMmY(0)
- , mbMultipart(false)
- , mMFlags(0)
{
memset (aObjects, 0, sizeof (aObjects));