diff options
author | Adam Jackson <ajax@redhat.com> | 2008-10-03 17:21:16 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2008-10-03 17:51:20 -0400 |
commit | 14d98b4a2fdea4a4f5cc9b751151672cb392fba3 (patch) | |
tree | 7ef1d6972c71813362a3d8211190ffdac6b8e0b4 /mi | |
parent | 48b47928133bc462947104bd0f4204f00b993862 (diff) |
miFindMaxBand is dead code
Diffstat (limited to 'mi')
-rw-r--r-- | mi/mi.h | 4 | ||||
-rw-r--r-- | mi/miregion.c | 30 |
2 files changed, 0 insertions, 34 deletions
@@ -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); -} |