From 7fdb61bd7e6fdc358c395fb9fe03a8f20a50637f Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 5 Feb 2008 21:58:04 +0100 Subject: [PATCH] gdi32: DC_GetDCPtr and DC_ReleaseDCPtr are not longer used. --- dlls/gdi32/dc.c | 34 ---------------------------------- dlls/gdi32/gdi_private.h | 3 --- 2 files changed, 37 deletions(-) diff --git a/dlls/gdi32/dc.c b/dlls/gdi32/dc.c index 161e0df0bc6..ba59a8d5664 100644 --- a/dlls/gdi32/dc.c +++ b/dlls/gdi32/dc.c @@ -155,40 +155,6 @@ DC *alloc_dc_ptr( const DC_FUNCTIONS *funcs, WORD magic ) -/*********************************************************************** - * DC_GetDCPtr - */ -DC *DC_GetDCPtr( HDC hdc ) -{ - DC *dc = get_dc_obj( hdc ); - if (!dc) return NULL; - - if (!InterlockedCompareExchange( &dc->refcount, 1, 0 )) - { - dc->thread = GetCurrentThreadId(); - } - else if (dc->thread != GetCurrentThreadId()) - { - GDI_ReleaseObj( hdc ); - SetLastError( ERROR_ACCESS_DENIED ); - return NULL; - } - else InterlockedIncrement( &dc->refcount ); - - return dc; -} - - -/*********************************************************************** - * DC_ReleaseDCPtr - */ -void DC_ReleaseDCPtr( DC *dc ) -{ - release_dc_ptr( dc ); - GDI_ReleaseObj( dc->hSelf ); -} - - /*********************************************************************** * free_dc_ptr */ diff --git a/dlls/gdi32/gdi_private.h b/dlls/gdi32/gdi_private.h index 21cf577992b..51932b065fd 100644 --- a/dlls/gdi32/gdi_private.h +++ b/dlls/gdi32/gdi_private.h @@ -397,9 +397,6 @@ extern void CLIPPING_UpdateGCRegion( DC * dc ) DECLSPEC_HIDDEN; /* dc.c */ extern DC *alloc_dc_ptr( const DC_FUNCTIONS *funcs, WORD magic ) DECLSPEC_HIDDEN; -extern DC * DC_GetDCUpdate( HDC hdc ) DECLSPEC_HIDDEN; -extern DC * DC_GetDCPtr( HDC hdc ) DECLSPEC_HIDDEN; -extern void DC_ReleaseDCPtr( DC *dc ) DECLSPEC_HIDDEN; extern BOOL free_dc_ptr( DC *dc ) DECLSPEC_HIDDEN; extern DC *get_dc_ptr( HDC hdc ) DECLSPEC_HIDDEN; extern void release_dc_ptr( DC *dc ) DECLSPEC_HIDDEN;