Module: wine Branch: master Commit: 7fdb61bd7e6fdc358c395fb9fe03a8f20a50637f URL: http://source.winehq.org/git/wine.git/?a=commit;h=7fdb61bd7e6fdc358c395fb9fe...
Author: Alexandre Julliard julliard@winehq.org Date: Tue Feb 5 21:58:04 2008 +0100
gdi32: DC_GetDCPtr and DC_ReleaseDCPtr are not longer used.
---
dlls/gdi32/dc.c | 34 ---------------------------------- dlls/gdi32/gdi_private.h | 3 --- 2 files changed, 0 insertions(+), 37 deletions(-)
diff --git a/dlls/gdi32/dc.c b/dlls/gdi32/dc.c index 161e0df..ba59a8d 100644 --- a/dlls/gdi32/dc.c +++ b/dlls/gdi32/dc.c @@ -156,40 +156,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 */ BOOL free_dc_ptr( DC *dc ) diff --git a/dlls/gdi32/gdi_private.h b/dlls/gdi32/gdi_private.h index 21cf577..51932b0 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;