summaryrefslogtreecommitdiff
path: root/basegfx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-10-27 01:59:25 +0100
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2015-10-27 02:33:18 +0000
commit3ce9af420afafa1a81de646220706fcdc8d84b55 (patch)
treefc73bb3f66a8bd7973cff8615de7feaa61c5a49d /basegfx
parent64de38cf8eec4c0ff21fa886b616182acd8600a2 (diff)
loplugin:unusedmethods
Change-Id: I73180266c0af98dbd8d29bd3b11850996b94def9 Reviewed-on: https://gerrit.libreoffice.org/19195 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'basegfx')
-rw-r--r--basegfx/source/inc/hommatrixtemplate.hxx48
-rw-r--r--basegfx/source/inc/stringconversiontools.hxx7
-rw-r--r--basegfx/source/polygon/b2dpolygontools.cxx33
-rw-r--r--basegfx/source/polygon/b2dpolypolygontools.cxx18
-rw-r--r--basegfx/source/vector/b2ivector.cxx6
5 files changed, 0 insertions, 112 deletions
diff --git a/basegfx/source/inc/hommatrixtemplate.hxx b/basegfx/source/inc/hommatrixtemplate.hxx
index 52ffd0b700b8..58a3b46990c4 100644
--- a/basegfx/source/inc/hommatrixtemplate.hxx
+++ b/basegfx/source/inc/hommatrixtemplate.hxx
@@ -418,25 +418,6 @@ namespace basegfx
testLastLine();
}
- void doNormalize()
- {
- if(mpLine)
- {
- const double fHomValue(get((RowSize - 1), (RowSize - 1)));
-
- for(sal_uInt16 a(0); a < RowSize; a++)
- {
- for(sal_uInt16 b(0); b < RowSize; b++)
- {
- set(a, b, get(a, b) / fHomValue);
- }
- }
-
- // evtl. get rid of last matrix line
- testLastLine();
- }
- }
-
double doDeterminant() const
{
ImplHomMatrixTemplate aWork(*this);
@@ -461,35 +442,6 @@ namespace basegfx
return fRetval;
}
- double doTrace() const
- {
- double fTrace = (mpLine) ? 0.0 : 1.0;
- const sal_uInt16 nMaxLine(
- sal::static_int_cast<sal_uInt16>(mpLine ? RowSize : (RowSize - 1)) );
-
- for(sal_uInt16 a(0); a < nMaxLine; a++)
- {
- fTrace += get(a, a);
- }
-
- return fTrace;
- }
-
- void doTranspose()
- {
- for(sal_uInt16 a(0); a < (RowSize - 1); a++)
- {
- for(sal_uInt16 b(a + 1); b < RowSize; b++)
- {
- const double fTemp(get(a, b));
- set(a, b, get(b, a));
- set(b, a, fTemp);
- }
- }
-
- testLastLine();
- }
-
void doAddMatrix(const ImplHomMatrixTemplate& rMat)
{
for(sal_uInt16 a(0); a < RowSize; a++)
diff --git a/basegfx/source/inc/stringconversiontools.hxx b/basegfx/source/inc/stringconversiontools.hxx
index 92713bf598c0..26fabdb53e34 100644
--- a/basegfx/source/inc/stringconversiontools.hxx
+++ b/basegfx/source/inc/stringconversiontools.hxx
@@ -69,13 +69,6 @@ namespace basegfx
const OUString& rStr,
const sal_Int32 nLen);
- void skipNumber(sal_Int32& io_rPos,
- const OUString& rStr,
- const sal_Int32 nLen);
-
- void skipDouble(sal_Int32& io_rPos,
- const OUString& rStr);
-
void putNumberCharWithSpace(OUStringBuffer& rStr,
double fValue,
double fOldValue,
diff --git a/basegfx/source/polygon/b2dpolygontools.cxx b/basegfx/source/polygon/b2dpolygontools.cxx
index 95ee250608f3..54f85214dab1 100644
--- a/basegfx/source/polygon/b2dpolygontools.cxx
+++ b/basegfx/source/polygon/b2dpolygontools.cxx
@@ -3191,39 +3191,6 @@ namespace basegfx
}
}
- bool containsOnlyHorizontalAndVerticalEdges(const B2DPolygon& rCandidate)
- {
- if(rCandidate.areControlPointsUsed())
- {
- return false;
- }
-
- const sal_uInt32 nPointCount(rCandidate.count());
-
- if(nPointCount < 2)
- {
- return true;
- }
-
- const sal_uInt32 nEdgeCount(rCandidate.isClosed() ? nPointCount + 1 : nPointCount);
- basegfx::B2DPoint aLast(rCandidate.getB2DPoint(0));
-
- for(sal_uInt32 a(1); a < nEdgeCount; a++)
- {
- const sal_uInt32 nNextIndex(a % nPointCount);
- const basegfx::B2DPoint aCurrent(rCandidate.getB2DPoint(nNextIndex));
-
- if(!basegfx::fTools::equal(aLast.getX(), aCurrent.getX()) && !basegfx::fTools::equal(aLast.getY(), aCurrent.getY()))
- {
- return false;
- }
-
- aLast = aCurrent;
- }
-
- return true;
- }
-
B2DVector getTangentEnteringPoint(const B2DPolygon& rCandidate, sal_uInt32 nIndex)
{
B2DVector aRetval(0.0, 0.0);
diff --git a/basegfx/source/polygon/b2dpolypolygontools.cxx b/basegfx/source/polygon/b2dpolypolygontools.cxx
index f290f37a12f4..b473367ce6cb 100644
--- a/basegfx/source/polygon/b2dpolypolygontools.cxx
+++ b/basegfx/source/polygon/b2dpolypolygontools.cxx
@@ -495,24 +495,6 @@ namespace basegfx
return aRetval;
}
- bool containsOnlyHorizontalAndVerticalEdges(const B2DPolyPolygon& rCandidate)
- {
- if(rCandidate.areControlPointsUsed())
- {
- return false;
- }
-
- for(sal_uInt32 a(0); a < rCandidate.count(); a++)
- {
- if(!containsOnlyHorizontalAndVerticalEdges(rCandidate.getB2DPolygon(a)))
- {
- return false;
- }
- }
-
- return true;
- }
-
B2DPolyPolygon createSevenSegmentPolyPolygon(sal_Char nNumber, bool bLitSegments)
{
// config here
diff --git a/basegfx/source/vector/b2ivector.cxx b/basegfx/source/vector/b2ivector.cxx
index 7e3e65d75bee..5b45871a39cf 100644
--- a/basegfx/source/vector/b2ivector.cxx
+++ b/basegfx/source/vector/b2ivector.cxx
@@ -60,12 +60,6 @@ namespace basegfx
return *this;
}
- B2IVector operator*( const B2DHomMatrix& rMat, const B2IVector& rVec )
- {
- B2IVector aRes( rVec );
- return aRes*=rMat;
- }
-
} // end of namespace basegfx
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */