summaryrefslogtreecommitdiff
path: root/basegfx/source
diff options
context:
space:
mode:
authorAlexander Bergmann <myaddons@gmx.de>2012-02-01 16:34:15 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-02-01 16:34:50 +0000
commitb3c3e116ff0eb9b550b73d3901395c042e31d192 (patch)
tree10814ac19c46bffb767d25e9ec408531d3878c14 /basegfx/source
parentbc8fa08a7ae48f68ee5578cb7820336c70898202 (diff)
unusedcode.easy: Removed unused code
Diffstat (limited to 'basegfx/source')
-rw-r--r--basegfx/source/matrix/b2dhommatrixtools.cxx26
-rw-r--r--basegfx/source/polygon/b2dpolygon.cxx24
-rw-r--r--basegfx/source/polygon/b3dpolygon.cxx5
-rw-r--r--basegfx/source/polygon/b3dpolypolygon.cxx24
-rw-r--r--basegfx/source/range/b1drange.cxx18
-rw-r--r--basegfx/source/range/b2drange.cxx7
-rw-r--r--basegfx/source/range/b3drange.cxx29
-rw-r--r--basegfx/source/tools/canvastools.cxx56
-rw-r--r--basegfx/source/tools/unopolypolygon.cxx5
-rw-r--r--basegfx/source/tuple/b2i64tuple.cxx5
-rw-r--r--basegfx/source/tuple/b2ituple.cxx5
-rw-r--r--basegfx/source/tuple/b3dtuple.cxx6
-rw-r--r--basegfx/source/tuple/b3i64tuple.cxx4
-rw-r--r--basegfx/source/tuple/b3ituple.cxx4
-rw-r--r--basegfx/source/vector/b2dvector.cxx8
-rw-r--r--basegfx/source/vector/b2ivector.cxx6
16 files changed, 0 insertions, 232 deletions
diff --git a/basegfx/source/matrix/b2dhommatrixtools.cxx b/basegfx/source/matrix/b2dhommatrixtools.cxx
index 574653446b34..2612d9f1e265 100644
--- a/basegfx/source/matrix/b2dhommatrixtools.cxx
+++ b/basegfx/source/matrix/b2dhommatrixtools.cxx
@@ -34,32 +34,6 @@
namespace basegfx
{
- ::rtl::OUString exportToSvg( const B2DHomMatrix& rMatrix )
- {
- rtl::OUStringBuffer aStrBuf;
- aStrBuf.appendAscii("matrix(");
-
- aStrBuf.append(rMatrix.get(0,0));
- aStrBuf.appendAscii(", ");
-
- aStrBuf.append(rMatrix.get(1,0));
- aStrBuf.appendAscii(", ");
-
- aStrBuf.append(rMatrix.get(0,1));
- aStrBuf.appendAscii(", ");
-
- aStrBuf.append(rMatrix.get(1,1));
- aStrBuf.appendAscii(", ");
-
- aStrBuf.append(rMatrix.get(0,2));
- aStrBuf.appendAscii(", ");
-
- aStrBuf.append(rMatrix.get(1,2));
- aStrBuf.appendAscii(")");
-
- return aStrBuf.makeStringAndClear();
- }
-
namespace tools
{
void createSinCosOrthogonal(double& o_rSin, double& o_rCos, double fRadiant)
diff --git a/basegfx/source/polygon/b2dpolygon.cxx b/basegfx/source/polygon/b2dpolygon.cxx
index a7749220931c..3d7b9487ccb4 100644
--- a/basegfx/source/polygon/b2dpolygon.cxx
+++ b/basegfx/source/polygon/b2dpolygon.cxx
@@ -1484,30 +1484,6 @@ namespace basegfx
return mpPolygon->getB2DRange(*this);
}
- void B2DPolygon::insert(sal_uInt32 nIndex, const B2DPolygon& rPoly, sal_uInt32 nIndex2, sal_uInt32 nCount)
- {
- OSL_ENSURE(nIndex <= mpPolygon->count(), "B2DPolygon Insert outside range (!)");
-
- if(rPoly.count())
- {
- if(!nCount)
- {
- nCount = rPoly.count();
- }
-
- if(0 == nIndex2 && nCount == rPoly.count())
- {
- mpPolygon->insert(nIndex, *rPoly.mpPolygon);
- }
- else
- {
- OSL_ENSURE(nIndex2 + nCount <= rPoly.mpPolygon->count(), "B2DPolygon Insert outside range (!)");
- ImplB2DPolygon aTempPoly(*rPoly.mpPolygon, nIndex2, nCount);
- mpPolygon->insert(nIndex, aTempPoly);
- }
- }
- }
-
void B2DPolygon::append(const B2DPolygon& rPoly, sal_uInt32 nIndex, sal_uInt32 nCount)
{
if(rPoly.count())
diff --git a/basegfx/source/polygon/b3dpolygon.cxx b/basegfx/source/polygon/b3dpolygon.cxx
index 5e0ed37c3bb7..8b802b4590fb 100644
--- a/basegfx/source/polygon/b3dpolygon.cxx
+++ b/basegfx/source/polygon/b3dpolygon.cxx
@@ -1557,11 +1557,6 @@ namespace basegfx
return *this;
}
- void B3DPolygon::makeUnique()
- {
- mpPolygon.make_unique();
- }
-
bool B3DPolygon::operator==(const B3DPolygon& rPolygon) const
{
if(mpPolygon.same_object(rPolygon.mpPolygon))
diff --git a/basegfx/source/polygon/b3dpolypolygon.cxx b/basegfx/source/polygon/b3dpolypolygon.cxx
index 9291c4a3e601..f4bcf80fc24c 100644
--- a/basegfx/source/polygon/b3dpolypolygon.cxx
+++ b/basegfx/source/polygon/b3dpolypolygon.cxx
@@ -186,13 +186,6 @@ public:
}
}
- void makeUnique()
- {
- std::for_each( maPolygons.begin(),
- maPolygons.end(),
- std::mem_fun_ref( &::basegfx::B3DPolygon::makeUnique ));
- }
-
const basegfx::B3DPolygon* begin() const
{
if(maPolygons.empty())
@@ -385,23 +378,6 @@ namespace basegfx
mpPolyPolygon = DefaultPolyPolygon::get();
}
- bool B3DPolyPolygon::isClosed() const
- {
- bool bRetval(true);
-
- // PolyPOlygon is closed when all contained Polygons are closed or
- // no Polygon exists.
- for(sal_uInt32 a(0L); bRetval && a < mpPolyPolygon->count(); a++)
- {
- if(!(mpPolyPolygon->getB3DPolygon(a)).isClosed())
- {
- bRetval = false;
- }
- }
-
- return bRetval;
- }
-
void B3DPolyPolygon::flip()
{
mpPolyPolygon->flip();
diff --git a/basegfx/source/range/b1drange.cxx b/basegfx/source/range/b1drange.cxx
index 402d56b123c0..0d6bd142e405 100644
--- a/basegfx/source/range/b1drange.cxx
+++ b/basegfx/source/range/b1drange.cxx
@@ -32,24 +32,6 @@
namespace basegfx
{
- B1DRange::B1DRange( const B1IRange& rRange ) :
- maRange()
- {
- if( !rRange.isEmpty() )
- {
- maRange = rRange.getMinimum();
- expand(rRange.getMaximum());
- }
- }
-
- B1IRange fround(const B1DRange& rRange)
- {
- return rRange.isEmpty() ?
- B1IRange() :
- B1IRange( fround( rRange.getMinimum()),
- fround( rRange.getMaximum()) );
- }
-
} // end of namespace basegfx
// eof
diff --git a/basegfx/source/range/b2drange.cxx b/basegfx/source/range/b2drange.cxx
index 2da38ce2dbc3..5884b7e564f4 100644
--- a/basegfx/source/range/b2drange.cxx
+++ b/basegfx/source/range/b2drange.cxx
@@ -60,13 +60,6 @@ namespace basegfx
}
}
- B2IRange fround(const B2DRange& rRange)
- {
- return rRange.isEmpty() ?
- B2IRange() :
- B2IRange(fround(rRange.getMinimum()),
- fround(rRange.getMaximum()));
- }
} // end of namespace basegfx
// eof
diff --git a/basegfx/source/range/b3drange.cxx b/basegfx/source/range/b3drange.cxx
index fb29c917c19e..65643939950c 100644
--- a/basegfx/source/range/b3drange.cxx
+++ b/basegfx/source/range/b3drange.cxx
@@ -33,23 +33,6 @@
namespace basegfx
{
- B3DRange::B3DRange(const B3IRange& rRange) :
- maRangeX(),
- maRangeY(),
- maRangeZ()
- {
- if( !rRange.isEmpty() )
- {
- maRangeX = rRange.getMinX();
- maRangeY = rRange.getMinY();
- maRangeZ = rRange.getMinZ();
-
- maRangeX.expand( rRange.getMaxX() );
- maRangeY.expand( rRange.getMaxY() );
- maRangeZ.expand( rRange.getMaxZ() );
- }
- }
-
void B3DRange::transform(const B3DHomMatrix& rMatrix)
{
if(!isEmpty() && !rMatrix.isIdentity())
@@ -67,18 +50,6 @@ namespace basegfx
}
}
- B3IRange fround(const B3DRange& rRange )
- {
- return rRange.isEmpty() ?
- B3IRange() :
- B3IRange(fround(rRange.getMinX()),
- fround(rRange.getMinY()),
- fround(rRange.getMinZ()),
- fround(rRange.getMaxX()),
- fround(rRange.getMaxY()),
- fround(rRange.getMaxZ()));
- }
-
} // end of namespace basegfx
// eof
diff --git a/basegfx/source/tools/canvastools.cxx b/basegfx/source/tools/canvastools.cxx
index 18e0ad342b1f..5743c306715e 100644
--- a/basegfx/source/tools/canvastools.cxx
+++ b/basegfx/source/tools/canvastools.cxx
@@ -510,45 +510,6 @@ namespace basegfx
rRectangle.X2, rRectangle.Y2 );
}
- awt::Size awtSizeFromB2ISize( const ::basegfx::B2IVector& rVec )
- {
- return awt::Size( rVec.getX(),
- rVec.getY() );
- }
-
- awt::Point awtPointFromB2IPoint( const ::basegfx::B2IPoint& rPoint )
- {
- return awt::Point( rPoint.getX(),
- rPoint.getY() );
- }
-
- awt::Rectangle awtRectangleFromB2IRectangle( const ::basegfx::B2IRange& rRect )
- {
- OSL_ENSURE( rRect.getWidth() < ::std::numeric_limits< sal_Int32 >::max() &&
- rRect.getWidth() > ::std::numeric_limits< sal_Int32 >::min(),
- "awtRectangleFromB2IRectangle(): width overflow" );
- OSL_ENSURE( rRect.getHeight() < ::std::numeric_limits< sal_Int32 >::max() &&
- rRect.getHeight() > ::std::numeric_limits< sal_Int32 >::min(),
- "awtRectangleFromB2IRectangle(): height overflow" );
-
- return awt::Rectangle( rRect.getMinX(),
- rRect.getMinY(),
- static_cast< sal_Int32 >(rRect.getWidth()),
- static_cast< sal_Int32 >(rRect.getHeight()) );
- }
-
- ::basegfx::B2IVector b2ISizeFromAwtSize( const awt::Size& rSize )
- {
- return ::basegfx::B2IVector( rSize.Width,
- rSize.Height );
- }
-
- ::basegfx::B2IPoint b2IPointFromAwtPoint( const awt::Point& rPoint )
- {
- return ::basegfx::B2IPoint( rPoint.X,
- rPoint.Y );
- }
-
::basegfx::B2IRange b2IRectangleFromAwtRectangle( const awt::Rectangle& rRect )
{
return ::basegfx::B2IRange( rRect.X,
@@ -581,23 +542,6 @@ namespace basegfx
ceil(rRange.getMaxY()) );
}
- // Geometry comparisons
- // ===================================================================
-
- bool awtSizeAreEqual( const ::com::sun::star::awt::Size& rA, const ::com::sun::star::awt::Size& rB )
- {
- return (rA.Width == rB.Width && rA.Height == rB.Height);
- }
-
- bool awtPointAreEqual( const ::com::sun::star::awt::Point& rA, const ::com::sun::star::awt::Point& rB )
- {
- return (rA.X == rB.X && rA.Y == rB.Y);
- }
-
- bool awtRectangleAreEqual( const ::com::sun::star::awt::Rectangle& rA, const ::com::sun::star::awt::Rectangle& rB )
- {
- return (rA.X == rB.X && rA.Y == rB.Y && rA.Width == rB.Width && rA.Height == rB.Height);
- }
} // namespace bgfxtools
} // namespace canvas
diff --git a/basegfx/source/tools/unopolypolygon.cxx b/basegfx/source/tools/unopolypolygon.cxx
index 80203c2587bc..2ffaabd149c4 100644
--- a/basegfx/source/tools/unopolypolygon.cxx
+++ b/basegfx/source/tools/unopolypolygon.cxx
@@ -445,11 +445,6 @@ namespace unotools
return aSubsetPoly;
}
- B2DPolyPolygon UnoPolyPolygon::getPolyPolygonUnsafe() const
- {
- return maPolyPoly;
- }
-
#define IMPLEMENTATION_NAME "gfx::internal::UnoPolyPolygon"
#define SERVICE_NAME "com.sun.star.rendering.PolyPolygon2D"
::rtl::OUString SAL_CALL UnoPolyPolygon::getImplementationName() throw( uno::RuntimeException )
diff --git a/basegfx/source/tuple/b2i64tuple.cxx b/basegfx/source/tuple/b2i64tuple.cxx
index fc60871f8065..9b97c4ba98e5 100644
--- a/basegfx/source/tuple/b2i64tuple.cxx
+++ b/basegfx/source/tuple/b2i64tuple.cxx
@@ -33,11 +33,6 @@ namespace { struct EmptyTuple : public rtl::Static<basegfx::B2I64Tuple, EmptyTup
namespace basegfx
{
- const B2I64Tuple& B2I64Tuple::getEmptyTuple()
- {
- return EmptyTuple::get();
- }
-
} // end of namespace basegfx
// eof
diff --git a/basegfx/source/tuple/b2ituple.cxx b/basegfx/source/tuple/b2ituple.cxx
index e4bd0fba77c4..f0c22caddeb5 100644
--- a/basegfx/source/tuple/b2ituple.cxx
+++ b/basegfx/source/tuple/b2ituple.cxx
@@ -34,11 +34,6 @@ namespace { struct EmptyTuple : public rtl::Static<basegfx::B2ITuple, EmptyTuple
namespace basegfx
{
- const B2ITuple& B2ITuple::getEmptyTuple()
- {
- return EmptyTuple::get();
- }
-
// external operators
//////////////////////////////////////////////////////////////////////////
diff --git a/basegfx/source/tuple/b3dtuple.cxx b/basegfx/source/tuple/b3dtuple.cxx
index b4adf02928e3..2e0d91a14cc5 100644
--- a/basegfx/source/tuple/b3dtuple.cxx
+++ b/basegfx/source/tuple/b3dtuple.cxx
@@ -39,12 +39,6 @@ namespace basegfx
return EmptyTuple::get();
}
- B3DTuple::B3DTuple(const B3ITuple& rTup)
- : mfX( rTup.getX() ),
- mfY( rTup.getY() ),
- mfZ( rTup.getZ() )
- {}
-
B3ITuple fround(const B3DTuple& rTup)
{
return B3ITuple(fround(rTup.getX()), fround(rTup.getY()), fround(rTup.getZ()));
diff --git a/basegfx/source/tuple/b3i64tuple.cxx b/basegfx/source/tuple/b3i64tuple.cxx
index 630d85218f14..0ee8cdffa8ec 100644
--- a/basegfx/source/tuple/b3i64tuple.cxx
+++ b/basegfx/source/tuple/b3i64tuple.cxx
@@ -33,10 +33,6 @@ namespace { struct EmptyTuple : public rtl::Static<basegfx::B3I64Tuple, EmptyTup
namespace basegfx
{
- const B3I64Tuple& B3I64Tuple::getEmptyTuple()
- {
- return EmptyTuple::get();
- }
} // end of namespace basegfx
// eof
diff --git a/basegfx/source/tuple/b3ituple.cxx b/basegfx/source/tuple/b3ituple.cxx
index ec1ecc3ea9f8..aff58e8b653e 100644
--- a/basegfx/source/tuple/b3ituple.cxx
+++ b/basegfx/source/tuple/b3ituple.cxx
@@ -33,10 +33,6 @@ namespace { struct EmptyTuple : public rtl::Static<basegfx::B3ITuple, EmptyTuple
namespace basegfx
{
- const B3ITuple& B3ITuple::getEmptyTuple()
- {
- return EmptyTuple::get();
- }
} // end of namespace basegfx
// eof
diff --git a/basegfx/source/vector/b2dvector.cxx b/basegfx/source/vector/b2dvector.cxx
index f34e8f4e13c5..296252726cad 100644
--- a/basegfx/source/vector/b2dvector.cxx
+++ b/basegfx/source/vector/b2dvector.cxx
@@ -135,14 +135,6 @@ namespace basegfx
return *this;
}
- bool B2DVector::isNormalized() const
- {
- const double fOne(1.0);
- const double fScalar(scalar(*this));
-
- return fTools::equal(fOne, fScalar);
- }
-
bool areParallel( const B2DVector& rVecA, const B2DVector& rVecB )
{
const double fValA(rVecA.getX() * rVecB.getY());
diff --git a/basegfx/source/vector/b2ivector.cxx b/basegfx/source/vector/b2ivector.cxx
index bb3ac61ee75b..cac7821040fe 100644
--- a/basegfx/source/vector/b2ivector.cxx
+++ b/basegfx/source/vector/b2ivector.cxx
@@ -74,12 +74,6 @@ namespace basegfx
return *this;
}
- bool areParallel( const B2IVector& rVecA, const B2IVector& rVecB )
- {
- double fVal(rVecA.getX() * rVecB.getY() - rVecA.getY() * rVecB.getX());
- return ::basegfx::fTools::equalZero(fVal);
- }
-
B2IVector operator*( const B2DHomMatrix& rMat, const B2IVector& rVec )
{
B2IVector aRes( rVec );