gdi32: DC_GetDCPtr and DC_ReleaseDCPtr are not longer used.

This commit is contained in:
Alexandre Julliard 2008-02-05 21:58:04 +01:00
parent 1e3c47eae9
commit 7fdb61bd7e
2 changed files with 0 additions and 37 deletions

View File

@ -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
*/

View File

@ -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;