mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
Static cleanups, dead code deletion.
This commit is contained in:
@@ -72,6 +72,12 @@
|
||||
|
||||
#define pixmapDamage(pPixmap) damagePixPriv(pPixmap)
|
||||
|
||||
static int damageScrPrivateIndex;
|
||||
static int damagePixPrivateIndex;
|
||||
static int damageGCPrivateIndex;
|
||||
static int damageWinPrivateIndex;
|
||||
static int damageGeneration;
|
||||
|
||||
static DamagePtr *
|
||||
getDrawableDamageRef (DrawablePtr pDrawable)
|
||||
{
|
||||
@@ -368,12 +374,12 @@ static void damageChangeClip(GCPtr, int, pointer, int);
|
||||
static void damageDestroyClip(GCPtr);
|
||||
static void damageCopyClip(GCPtr, GCPtr);
|
||||
|
||||
GCFuncs damageGCFuncs = {
|
||||
static GCFuncs damageGCFuncs = {
|
||||
damageValidateGC, damageChangeGC, damageCopyGC, damageDestroyGC,
|
||||
damageChangeClip, damageDestroyClip, damageCopyClip
|
||||
};
|
||||
|
||||
extern GCOps damageGCOps;
|
||||
static GCOps damageGCOps;
|
||||
|
||||
static Bool
|
||||
damageCreateGC(GCPtr pGC)
|
||||
@@ -1686,7 +1692,7 @@ damageCopyWindow(WindowPtr pWindow,
|
||||
wrap (pScrPriv, pScreen, CopyWindow, damageCopyWindow);
|
||||
}
|
||||
|
||||
GCOps damageGCOps = {
|
||||
static GCOps damageGCOps = {
|
||||
damageFillSpans, damageSetSpans,
|
||||
damagePutImage, damageCopyArea,
|
||||
damageCopyPlane, damagePolyPoint,
|
||||
@@ -1787,12 +1793,6 @@ damageCloseScreen (int i, ScreenPtr pScreen)
|
||||
return (*pScreen->CloseScreen) (i, pScreen);
|
||||
}
|
||||
|
||||
int damageScrPrivateIndex;
|
||||
int damagePixPrivateIndex;
|
||||
int damageGCPrivateIndex;
|
||||
int damageWinPrivateIndex;
|
||||
int damageGeneration;
|
||||
|
||||
Bool
|
||||
DamageSetup (ScreenPtr pScreen)
|
||||
{
|
||||
|
||||
@@ -82,11 +82,7 @@ typedef struct _damageGCPriv {
|
||||
GCFuncs *funcs;
|
||||
} DamageGCPrivRec, *DamageGCPrivPtr;
|
||||
|
||||
extern int damageScrPrivateIndex;
|
||||
extern int damagePixPrivateIndex;
|
||||
extern int damageGCPrivateIndex;
|
||||
extern int damageWinPrivateIndex;
|
||||
|
||||
/* XXX should move these into damage.c, damageScrPrivateIndex is static */
|
||||
#define damageGetScrPriv(pScr) \
|
||||
((DamageScrPrivPtr) (pScr)->devPrivates[damageScrPrivateIndex].ptr)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user