summaryrefslogtreecommitdiff
path: root/basegfx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-01-10 09:35:58 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-01-10 10:09:29 +0000
commit629cd5caadc6dced0d0f6b48368c5b6e55ea757e (patch)
tree1a50fcad22766893fa74c56907444cc5f4815d4a /basegfx
parent84479bc5ab3a185abb57c39d0a0a7a8c763b5875 (diff)
callcatcher: update list
Diffstat (limited to 'basegfx')
-rw-r--r--basegfx/inc/basegfx/polygon/b2dpolygon.hxx17
-rw-r--r--basegfx/inc/basegfx/tuple/b2dtuple.hxx2
-rw-r--r--basegfx/source/polygon/b2dpolygon.cxx40
-rw-r--r--basegfx/source/tuple/b2dtuple.cxx30
4 files changed, 0 insertions, 89 deletions
diff --git a/basegfx/inc/basegfx/polygon/b2dpolygon.hxx b/basegfx/inc/basegfx/polygon/b2dpolygon.hxx
index da23bb4f1058..707590de87ad 100644
--- a/basegfx/inc/basegfx/polygon/b2dpolygon.hxx
+++ b/basegfx/inc/basegfx/polygon/b2dpolygon.hxx
@@ -101,7 +101,6 @@ namespace basegfx
/// ControlPoint resets
void resetPrevControlPoint(sal_uInt32 nIndex);
void resetNextControlPoint(sal_uInt32 nIndex);
- void resetControlPoints(sal_uInt32 nIndex);
void resetControlPoints();
/// Bezier segment append with control points. The current last polygon point is implicitly taken as start point.
@@ -113,22 +112,6 @@ namespace basegfx
bool isNextControlPointUsed(sal_uInt32 nIndex) const;
B2VectorContinuity getContinuityInPoint(sal_uInt32 nIndex) const;
- /** check edge for being a bezier segment
-
- This test the existance of control vectors, but do not apply
- testAndSolveTrivialBezier() to the bezier segment, so it is still useful
- to do so.
- Since it can use internal data representations, it is faster
- than using getBezierSegment() and applying isBezier() on it.
-
- @param nIndex
- Index of the addressed edge's start point
-
- @return
- true if edge exists and at least one control vector is used
- */
- bool isBezierSegment(sal_uInt32 nIndex) const;
-
/** bezier segment access
This method also works when it is no bezier segment at all and will fill
diff --git a/basegfx/inc/basegfx/tuple/b2dtuple.hxx b/basegfx/inc/basegfx/tuple/b2dtuple.hxx
index 4706cf92158e..19ec58d106a7 100644
--- a/basegfx/inc/basegfx/tuple/b2dtuple.hxx
+++ b/basegfx/inc/basegfx/tuple/b2dtuple.hxx
@@ -238,8 +238,6 @@ namespace basegfx
return *this;
}
- BASEGFX_DLLPUBLIC void correctValues(const double fCompareValue = 0.0);
-
BASEGFX_DLLPUBLIC static const B2DTuple& getEmptyTuple();
};
diff --git a/basegfx/source/polygon/b2dpolygon.cxx b/basegfx/source/polygon/b2dpolygon.cxx
index 3bc0401e271e..a7749220931c 100644
--- a/basegfx/source/polygon/b2dpolygon.cxx
+++ b/basegfx/source/polygon/b2dpolygon.cxx
@@ -1378,17 +1378,6 @@ namespace basegfx
}
}
- void B2DPolygon::resetControlPoints(sal_uInt32 nIndex)
- {
- OSL_ENSURE(nIndex < mpPolygon->count(), "B2DPolygon access outside range (!)");
-
- if(mpPolygon->areControlPointsUsed() &&
- (!mpPolygon->getPrevControlVector(nIndex).equalZero() || !mpPolygon->getNextControlVector(nIndex).equalZero()))
- {
- mpPolygon->resetControlVectors(nIndex);
- }
- }
-
void B2DPolygon::resetControlPoints()
{
if(mpPolygon->areControlPointsUsed())
@@ -1451,35 +1440,6 @@ namespace basegfx
}
}
- bool B2DPolygon::isBezierSegment(sal_uInt32 nIndex) const
- {
- OSL_ENSURE(nIndex < mpPolygon->count(), "B2DPolygon access outside range (!)");
-
- if(mpPolygon->areControlPointsUsed())
- {
- // Check if the edge exists
- const bool bNextIndexValidWithoutClose(nIndex + 1 < mpPolygon->count());
-
- if(bNextIndexValidWithoutClose || mpPolygon->isClosed())
- {
- const sal_uInt32 nNextIndex(bNextIndexValidWithoutClose ? nIndex + 1 : 0);
- return (!mpPolygon->getPrevControlVector(nNextIndex).equalZero()
- || !mpPolygon->getNextControlVector(nIndex).equalZero());
- }
- else
- {
- // no valid edge -> no bezier segment, even when local next
- // vector may be used
- return false;
- }
- }
- else
- {
- // no control points -> no bezier segment
- return false;
- }
- }
-
void B2DPolygon::getBezierSegment(sal_uInt32 nIndex, B2DCubicBezier& rTarget) const
{
OSL_ENSURE(nIndex < mpPolygon->count(), "B2DPolygon access outside range (!)");
diff --git a/basegfx/source/tuple/b2dtuple.cxx b/basegfx/source/tuple/b2dtuple.cxx
index cb44b7d4c11d..04fd5510bd6a 100644
--- a/basegfx/source/tuple/b2dtuple.cxx
+++ b/basegfx/source/tuple/b2dtuple.cxx
@@ -45,34 +45,6 @@ namespace basegfx
mfY( rTup.getY() )
{}
- void B2DTuple::correctValues(const double fCompareValue)
- {
- if(0.0 == fCompareValue)
- {
- if(::basegfx::fTools::equalZero(mfX))
- {
- mfX = 0.0;
- }
-
- if(::basegfx::fTools::equalZero(mfY))
- {
- mfY = 0.0;
- }
- }
- else
- {
- if(::basegfx::fTools::equal(mfX, fCompareValue))
- {
- mfX = fCompareValue;
- }
-
- if(::basegfx::fTools::equal(mfY, fCompareValue))
- {
- mfY = fCompareValue;
- }
- }
- }
-
B2ITuple fround(const B2DTuple& rTup)
{
return B2ITuple(fround(rTup.getX()), fround(rTup.getY()));
@@ -80,6 +52,4 @@ namespace basegfx
} // end of namespace basegfx
-// eof
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */