diff options
author | George Sapountzis <gsap7@yahoo.gr> | 2008-03-01 16:18:18 +0200 |
---|---|---|
committer | George Sapountzis <gsap7@yahoo.gr> | 2008-03-01 19:49:24 +0200 |
commit | 3d642905477f4b1ec3223f1fbe0d0d37e959ec81 (patch) | |
tree | d158aa13c19be80495f92cf9979c3703e71ade2a /mi | |
parent | e7a6f79754816976d92857d55840262cccff80a6 (diff) |
clean some "unused" warnings
Diffstat (limited to 'mi')
-rw-r--r-- | mi/midash.c | 32 | ||||
-rw-r--r-- | mi/miexpose.c | 2 | ||||
-rw-r--r-- | mi/mioverlay.c | 1 | ||||
-rw-r--r-- | mi/miwindow.c | 1 |
4 files changed, 0 insertions, 36 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 */ diff --git a/mi/miexpose.c b/mi/miexpose.c index 2d3b0d510..5c2bd0382 100644 --- a/mi/miexpose.c +++ b/mi/miexpose.c @@ -288,8 +288,6 @@ miHandleExposures(pSrcDrawable, pDstDrawable, #endif if (extents) { - WindowPtr pWin = (WindowPtr)pDstDrawable; - expBox = *REGION_EXTENTS(pscr, &rgnExposed); REGION_RESET(pscr, &rgnExposed, &expBox); } diff --git a/mi/mioverlay.c b/mi/mioverlay.c index a0adac54d..6ddcc052d 100644 --- a/mi/mioverlay.c +++ b/mi/mioverlay.c @@ -1528,7 +1528,6 @@ miOverlaySetShape(WindowPtr pWin) { Bool WasViewable = (Bool)(pWin->viewable); ScreenPtr pScreen = pWin->drawable.pScreen; - RegionPtr pOldClip = NULL; #ifdef DO_SAVE_UNDERS Bool dosave = FALSE; #endif diff --git a/mi/miwindow.c b/mi/miwindow.c index 77cb75009..cb8400c0c 100644 --- a/mi/miwindow.c +++ b/mi/miwindow.c @@ -938,7 +938,6 @@ miSetShape(pWin) Bool WasViewable = (Bool)(pWin->viewable); ScreenPtr pScreen = pWin->drawable.pScreen; Bool anyMarked = FALSE; - RegionPtr pOldClip = NULL; #ifdef DO_SAVE_UNDERS Bool dosave = FALSE; #endif |