summaryrefslogtreecommitdiffstats
path: root/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-02-27 15:45:15 +0200
committerNoel Grandin <noel@peralex.com>2014-02-28 08:32:03 +0200
commit98881b0a5574391dd98ff68d8b7453df1e3ca930 (patch)
tree453c73f56f9628cc0a98b167c58d0680307d9dd1 /vcl
parentremove unused code ImportExcel::GetLastFormula(short) (diff)
downloadcore-98881b0a5574391dd98ff68d8b7453df1e3ca930.tar.gz
core-98881b0a5574391dd98ff68d8b7453df1e3ca930.zip
remove unused code in vcl/ImplRegionBand
ImplRegionBand::IsInside(long, long) ImplRegionBand::IsOver(long, long) Change-Id: I607c589d62a0c9178a32df5cf48fcbe279878030
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/regband.hxx5
-rw-r--r--vcl/source/gdi/regband.cxx32
2 files changed, 0 insertions, 37 deletions
diff --git a/vcl/inc/regband.hxx b/vcl/inc/regband.hxx
index 5e8f5bdefc5b..0ef560e92e89 100644
--- a/vcl/inc/regband.hxx
+++ b/vcl/inc/regband.hxx
@@ -33,9 +33,6 @@ separation after creation.
The separations are modified with basic clipping functions like Union and
Intersection - the Class will process the clipping for the actual band.
-The actual separations may be checked by functions like IsInside or
-IsOver.
-
*/
// element for the list with x-separations
@@ -113,8 +110,6 @@ public:
void ScaleX( double fHorzScale );
bool IsInside( long nX );
- bool IsInside( long nLeft, long nRight );
- bool IsOver( long nLeft, long nRight );
bool IsEmpty() const { return ((!mpFirstSep) && (!mpFirstBandPoint)); }
diff --git a/vcl/source/gdi/regband.cxx b/vcl/source/gdi/regband.cxx
index 59d9c914799e..1184c0d56459 100644
--- a/vcl/source/gdi/regband.cxx
+++ b/vcl/source/gdi/regband.cxx
@@ -849,38 +849,6 @@ bool ImplRegionBand::IsInside( long nX )
-bool ImplRegionBand::IsOver( long nLeft, long nRight )
-{
- ImplRegionBandSep* pSep = mpFirstSep;
- while ( pSep )
- {
- if ( (pSep->mnXLeft < nRight) && (pSep->mnXRight > nLeft) )
- return true;
-
- pSep = pSep->mpNextSep;
- }
-
- return false;
-}
-
-
-
-bool ImplRegionBand::IsInside( long nLeft, long nRight )
-{
- ImplRegionBandSep* pSep = mpFirstSep;
- while ( pSep )
- {
- if ( (pSep->mnXLeft >= nLeft) && (nRight <= pSep->mnXRight) )
- return true;
-
- pSep = pSep->mpNextSep;
- }
-
- return false;
-}
-
-
-
long ImplRegionBand::GetXLeftBoundary() const
{
DBG_ASSERT( mpFirstSep != NULL, "ImplRegionBand::XLeftBoundary -> no separation in band!" );