summaryrefslogtreecommitdiffstats
path: root/filter
diff options
context:
space:
mode:
authorAugust Sodora <augsod@gmail.com>2012-01-07 20:41:09 -0500
committerAugust Sodora <augsod@gmail.com>2012-01-08 11:48:09 -0500
commitbc2a59e09d1a554b2d55412d1f10a3fa1fe86086 (patch)
tree0f588df79ace5b37eff26593e78cf17f4071e1fd /filter
parentRemove uses of pLine in scanner (diff)
downloadcore-bc2a59e09d1a554b2d55412d1f10a3fa1fe86086.tar.gz
core-bc2a59e09d1a554b2d55412d1f10a3fa1fe86086.zip
callcatcher: Remove unused code
Diffstat (limited to 'filter')
-rw-r--r--filter/source/svg/b2dellipse.cxx88
-rw-r--r--filter/source/svg/b2dellipse.hxx19
2 files changed, 2 insertions, 105 deletions
diff --git a/filter/source/svg/b2dellipse.cxx b/filter/source/svg/b2dellipse.cxx
index 802b2f4aac4c..b50f91133a9b 100644
--- a/filter/source/svg/b2dellipse.cxx
+++ b/filter/source/svg/b2dellipse.cxx
@@ -26,82 +26,11 @@
*/
#include "b2dellipse.hxx"
-#include <osl/diagnose.h>
-
#include <basegfx/point/b2dpoint.hxx>
-
#include <basegfx/matrix/b2dhommatrix.hxx>
-#include <rtl/instance.hxx>
-
-#include <boost/scoped_ptr.hpp>
-#include <vector>
-#include <algorithm>
-
-class ImplB2DEllipse
-{
- basegfx::B2DPoint maCenter;
- basegfx::B2DTuple maRadius;
-
-public:
- ImplB2DEllipse()
- : maCenter(0.0f, 0.0f),
- maRadius(0.0f, 0.0f)
- {}
-
- ImplB2DEllipse(const ImplB2DEllipse& rToBeCopied)
- : maCenter(rToBeCopied.maCenter),
- maRadius(rToBeCopied.maRadius)
- {}
-
- ImplB2DEllipse& operator=( const ImplB2DEllipse& rToBeCopied )
- {
- maCenter = rToBeCopied.maCenter;
- maRadius = rToBeCopied.maRadius;
-
- return *this;
- }
-
- bool isEqual(const ImplB2DEllipse& rCandidate) const
- {
- return (maCenter == rCandidate.maCenter)
- && (maRadius == rCandidate.maRadius);
- }
-
- basegfx::B2DPoint getCenter() const
- {
- return maCenter;
- }
-
- void setCenter(const basegfx::B2DPoint& rCenter)
- {
- maCenter = rCenter;
- }
-
- basegfx::B2DTuple getRadius() const
- {
- return maRadius;
- }
-
- void setRadius(const basegfx::B2DTuple& rRadius)
- {
- maRadius = rRadius;
- }
-
-
- void transform(const basegfx::B2DHomMatrix& /* rMatrix */)
- {
- }
-};
-
-//////////////////////////////////////////////////////////////////////////////
-
namespace basegfx
{
-
- B2DEllipse::B2DEllipse()
- {}
-
B2DEllipse::B2DEllipse(const basegfx::B2DPoint& rCenter, const basegfx::B2DTuple& rRadius)
: maCenter(rCenter), maRadius(rRadius)
{
@@ -126,27 +55,10 @@ namespace basegfx
return maCenter;
}
- void B2DEllipse::setB2DEllipseCenter(const basegfx::B2DPoint& rCenter)
- {
- maCenter = rCenter;
- }
-
basegfx::B2DTuple B2DEllipse::getB2DEllipseRadius() const
{
return maRadius;
}
-
- void B2DEllipse::setB2DEllipseRadius(const basegfx::B2DTuple& rRadius)
- {
- maRadius = rRadius;
- }
-
- void B2DEllipse::transform(const basegfx::B2DHomMatrix& /* rMatrix */)
- {
- }
} // end of namespace basegfx
-//////////////////////////////////////////////////////////////////////////////
-// eof
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/filter/source/svg/b2dellipse.hxx b/filter/source/svg/b2dellipse.hxx
index dda447d30fc8..0efde7150c9f 100644
--- a/filter/source/svg/b2dellipse.hxx
+++ b/filter/source/svg/b2dellipse.hxx
@@ -37,10 +37,6 @@
#include <basegfx/vector/b2enums.hxx>
-//////////////////////////////////////////////////////////////////////////////
-// predeclarations
-class ImplB2DEllipse;
-
namespace basegfx
{
class B2DPoint;
@@ -48,18 +44,15 @@ namespace basegfx
class B2DHomMatrix;
} // end of namespace basegfx
-//////////////////////////////////////////////////////////////////////////////
-
namespace basegfx
{
class B2DEllipse
{
private:
- basegfx::B2DPoint maCenter;
- basegfx::B2DTuple maRadius;
+ const basegfx::B2DPoint maCenter;
+ const basegfx::B2DTuple maRadius;
public:
- B2DEllipse();
B2DEllipse(const B2DEllipse& rEllipse);
B2DEllipse(const basegfx::B2DPoint& rCenter, const basegfx::B2DTuple& rRadius);
~B2DEllipse();
@@ -73,18 +66,10 @@ namespace basegfx
// Coordinate interface
basegfx::B2DPoint getB2DEllipseCenter() const;
- void setB2DEllipseCenter(const basegfx::B2DPoint& rCenter);
-
basegfx::B2DTuple getB2DEllipseRadius() const;
- void setB2DEllipseRadius(const basegfx::B2DTuple& rRadius);
-
- // apply transformation given in matrix form to the Ellipse
- void transform(const basegfx::B2DHomMatrix& rMatrix);
};
} // end of namespace basegfx
-//////////////////////////////////////////////////////////////////////////////
-
#endif /* _BASEGFX_B2DELLIPSE_HXX */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */