summaryrefslogtreecommitdiff
path: root/mi/midash.c
diff options
context:
space:
mode:
authorGeorge Sapountzis <gsap7@yahoo.gr>2008-03-01 16:18:18 +0200
committerGeorge Sapountzis <gsap7@yahoo.gr>2008-03-01 19:49:24 +0200
commit3d642905477f4b1ec3223f1fbe0d0d37e959ec81 (patch)
treed158aa13c19be80495f92cf9979c3703e71ade2a /mi/midash.c
parente7a6f79754816976d92857d55840262cccff80a6 (diff)
clean some "unused" warnings
Diffstat (limited to 'mi/midash.c')
-rw-r--r--mi/midash.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/mi/midash.c b/mi/midash.c
index 912fb0389..95a19c295 100644
--- a/mi/midash.c
+++ b/mi/midash.c
@@ -52,38 +52,6 @@ SOFTWARE.
#include "mistruct.h"
#include "mifpoly.h"
-static miDashPtr CheckDashStorage(miDashPtr *ppseg, int nseg, int *pnsegMax);
-
-#define NSEGDELTA 16
-
-/* returns a pointer to the pseg[nseg-1], growing the storage as
-necessary. this interface seems unnecessarily cumbersome.
-
-*/
-
-static miDashPtr
-CheckDashStorage(
- miDashPtr *ppseg, /* base pointer */
- int nseg, /* number of segment we want to write to */
- int *pnsegMax) /* size (in segments) of list so far */
-{
- if (nseg > *pnsegMax)
- {
- miDashPtr newppseg;
-
- *pnsegMax += NSEGDELTA;
- newppseg = (miDashPtr)xrealloc(*ppseg,
- (*pnsegMax)*sizeof(miDashRec));
- if (!newppseg)
- {
- xfree(*ppseg);
- return (miDashPtr)NULL;
- }
- *ppseg = newppseg;
- }
- return(*ppseg+(nseg-1));
-}
-
_X_EXPORT void
miStepDash (dist, pDashIndex, pDash, numInDashList, pDashOffset)
int dist; /* distance to step */