summaryrefslogtreecommitdiff
path: root/mi
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2008-10-03 17:21:16 -0400
committerAdam Jackson <ajax@redhat.com>2008-10-03 17:51:20 -0400
commit14d98b4a2fdea4a4f5cc9b751151672cb392fba3 (patch)
tree7ef1d6972c71813362a3d8211190ffdac6b8e0b4 /mi
parent48b47928133bc462947104bd0f4204f00b993862 (diff)
miFindMaxBand is dead code
Diffstat (limited to 'mi')
-rw-r--r--mi/mi.h4
-rw-r--r--mi/miregion.c30
2 files changed, 0 insertions, 34 deletions
diff --git a/mi/mi.h b/mi/mi.h
index 8bacaa7a4..e38bf383e 100644
--- a/mi/mi.h
+++ b/mi/mi.h
@@ -369,10 +369,6 @@ extern Bool miRectAlloc(
int /*n*/
);
-extern int miFindMaxBand(
- RegionPtr /*prgn*/
-);
-
#ifdef DEBUG
extern Bool miValidRegion(
RegionPtr /*prgn*/
diff --git a/mi/miregion.c b/mi/miregion.c
index be979347a..bbeac877b 100644
--- a/mi/miregion.c
+++ b/mi/miregion.c
@@ -1843,33 +1843,3 @@ miClipSpans(
}
return (pwidthNew - pwidthNewStart);
}
-
-/* find the band in a region with the most rectangles */
-_X_EXPORT int
-miFindMaxBand(RegionPtr prgn)
-{
- int nbox;
- BoxPtr pbox;
- int nThisBand;
- int nMaxBand = 0;
- short yThisBand;
-
- good(prgn);
- nbox = REGION_NUM_RECTS(prgn);
- pbox = REGION_RECTS(prgn);
-
- while(nbox > 0)
- {
- yThisBand = pbox->y1;
- nThisBand = 0;
- while((nbox > 0) && (pbox->y1 == yThisBand))
- {
- nbox--;
- pbox++;
- nThisBand++;
- }
- if (nThisBand > nMaxBand)
- nMaxBand = nThisBand;
- }
- return (nMaxBand);
-}