From 519b98765f0c7d083a744ae7beb641753e4eb751 Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Thu, 3 Mar 2016 22:32:28 +0000 Subject: [PATCH] hw/xwin: Remove GC privates, unused since native GDI engine removal Unused since native GDI engine removal in commit 8465ee78 Signed-off-by: Jon Turney Reviewed-by: Colin Harrison --- hw/xwin/win.h | 10 +--------- hw/xwin/winallpriv.c | 7 ------- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/hw/xwin/win.h b/hw/xwin/win.h index 0574707b0..f9c44b3b3 100644 --- a/hw/xwin/win.h +++ b/hw/xwin/win.h @@ -292,15 +292,6 @@ typedef Bool (*winReleasePrimarySurfaceProcPtr) (ScreenPtr); typedef Bool (*winCreateScreenResourcesProc) (ScreenPtr); -/* - * GC (graphics context) privates - */ - -typedef struct { - HDC hdc; - HDC hdcMem; -} winPrivGCRec, *winPrivGCPtr; - /* * Pixmap privates */ @@ -324,6 +315,7 @@ typedef struct { PALETTEENTRY peColors[WIN_NUM_PALETTE_ENTRIES]; } winPrivCmapRec, *winPrivCmapPtr; + /* * Windows Cursor handling. */ diff --git a/hw/xwin/winallpriv.c b/hw/xwin/winallpriv.c index 816b030ca..e25e6bd11 100644 --- a/hw/xwin/winallpriv.c +++ b/hw/xwin/winallpriv.c @@ -79,13 +79,6 @@ winAllocatePrivates(ScreenPtr pScreen) /* Save the screen private pointer */ winSetScreenPriv(pScreen, pScreenPriv); - /* Reserve GC memory for our privates */ - if (!dixRegisterPrivateKey - (g_iGCPrivateKey, PRIVATE_GC, sizeof(winPrivGCRec))) { - ErrorF("winAllocatePrivates - AllocateGCPrivate () failed\n"); - return FALSE; - } - /* Reserve Pixmap memory for our privates */ if (!dixRegisterPrivateKey (g_iPixmapPrivateKey, PRIVATE_PIXMAP, sizeof(winPrivPixmapRec))) {