From 3b32c5898ff4e744d3f18b00421b433500426d74 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 2 Jul 2015 14:21:30 +0200 Subject: loplugin:unusedmethods sax,shell,stoc,basegfx Change-Id: Ia5d63f7153e4b02acc5e206739316264d6d1184e --- include/basegfx/range/b2irange.hxx | 50 -------------------------------------- 1 file changed, 50 deletions(-) (limited to 'include/basegfx/range/b2irange.hxx') diff --git a/include/basegfx/range/b2irange.hxx b/include/basegfx/range/b2irange.hxx index 65756dfb7600..7a07229906af 100644 --- a/include/basegfx/range/b2irange.hxx +++ b/include/basegfx/range/b2irange.hxx @@ -178,15 +178,6 @@ namespace basegfx ); } - /// return center point of set. returns (0,0) for empty sets. - B2DPoint getCenter() const - { - return B2DPoint( - maRangeX.getCenter(), - maRangeY.getCenter() - ); - } - /// yields true if given point is contained in set bool isInside(const B2ITuple& rTuple) const { @@ -196,33 +187,6 @@ namespace basegfx ); } - /// yields true if rRange is inside, or equal to set - bool isInside(const B2IRange& rRange) const - { - return ( - maRangeX.isInside(rRange.maRangeX) - && maRangeY.isInside(rRange.maRangeY) - ); - } - - /// yields true if rRange at least partly inside set - bool overlaps(const B2IRange& rRange) const - { - return ( - maRangeX.overlaps(rRange.maRangeX) - && maRangeY.overlaps(rRange.maRangeY) - ); - } - - /// yields true if overlaps(rRange) does, and the overlap is larger than infinitesimal - bool overlapsMore(const B2IRange& rRange) const - { - return ( - maRangeX.overlapsMore(rRange.maRangeX) - && maRangeY.overlapsMore(rRange.maRangeY) - ); - } - /// add point to the set, expanding as necessary void expand(const B2ITuple& rTuple) { @@ -230,13 +194,6 @@ namespace basegfx maRangeY.expand(rTuple.getY()); } - /// add rRange to the set, expanding as necessary - void expand(const B2IRange& rRange) - { - maRangeX.expand(rRange.maRangeX); - maRangeY.expand(rRange.maRangeY); - } - /// calc set intersection void intersect(const B2IRange& rRange) { @@ -244,13 +201,6 @@ namespace basegfx maRangeY.intersect(rRange.maRangeY); } - /// grow set by nValue on all sides - void grow(sal_Int32 nValue) - { - maRangeX.grow(nValue); - maRangeY.grow(nValue); - } - private: typedef ::basegfx::BasicRange< ValueType, TraitsType > MyBasicRange; -- cgit