dix and others: remove unused arraySize field from ScreenInfo

Bizarre. This seems to never be used before. I left the field in ScreenInfo,
with another name. So, stop looking at it.

Signed-off-by: Tiago Vignatti <tiago.vignatti@nokia.com>
Reviewed-by: Aaron Plattner <aplattner@nvidia.com>
This commit is contained in:
Tiago Vignatti 2010-04-22 15:43:11 +03:00
parent 64fd39f2f0
commit 4f8dc1109d
4 changed files with 1 additions and 4 deletions

View File

@ -190,7 +190,6 @@ int main(int argc, char *argv[], char *envp[])
FatalError("couldn't init server resources"); FatalError("couldn't init server resources");
SetInputCheck(&alwaysCheckForInput[0], &alwaysCheckForInput[1]); SetInputCheck(&alwaysCheckForInput[0], &alwaysCheckForInput[1]);
screenInfo.arraySize = MAXSCREENS;
screenInfo.numScreens = 0; screenInfo.numScreens = 0;
InitAtoms(); InitAtoms();

View File

@ -615,7 +615,7 @@ typedef struct _ScreenInfo {
int numPixmapFormats; int numPixmapFormats;
PixmapFormatRec PixmapFormatRec
formats[MAXFORMATS]; formats[MAXFORMATS];
int arraySize; int unused2;
int numScreens; int numScreens;
ScreenPtr screens[MAXSCREENS]; ScreenPtr screens[MAXSCREENS];
int unused; int unused;

View File

@ -141,7 +141,6 @@ static Bool device_cursor_init(DeviceIntPtr dev, ScreenPtr screen) { return TRUE
static Bool set_cursor_pos(DeviceIntPtr dev, ScreenPtr screen, int x, int y, Bool event) { return TRUE; } static Bool set_cursor_pos(DeviceIntPtr dev, ScreenPtr screen, int x, int y, Bool event) { return TRUE; }
void init_simple(void) void init_simple(void)
{ {
screenInfo.arraySize = MAXSCREENS;
screenInfo.numScreens = 1; screenInfo.numScreens = 1;
screenInfo.screens[0] = &screen; screenInfo.screens[0] = &screen;

View File

@ -49,7 +49,6 @@ static void xtest_init_devices(void)
/* random stuff that needs initialization */ /* random stuff that needs initialization */
memset(&screen, 0, sizeof(screen)); memset(&screen, 0, sizeof(screen));
screenInfo.arraySize = MAXSCREENS;
screenInfo.numScreens = 1; screenInfo.numScreens = 1;
screenInfo.screens[0] = &screen; screenInfo.screens[0] = &screen;
screen.myNum = 0; screen.myNum = 0;