Alexandre Julliard : gdi32: Get rid of GDI_ReallocObject.
Alexandre Julliard
julliard at winehq.org
Thu Jan 29 09:14:41 CST 2009
Module: wine
Branch: master
Commit: f1ea7a40f8f8425c00460f8bee91bc3873b6e0d0
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f1ea7a40f8f8425c00460f8bee91bc3873b6e0d0
Author: Alexandre Julliard <julliard at winehq.org>
Date: Wed Jan 28 19:04:04 2009 +0100
gdi32: Get rid of GDI_ReallocObject.
---
dlls/gdi32/gdi_private.h | 1 -
dlls/gdi32/gdiobj.c | 27 ---------------------------
2 files changed, 0 insertions(+), 28 deletions(-)
diff --git a/dlls/gdi32/gdi_private.h b/dlls/gdi32/gdi_private.h
index e78e496..87d4ec0 100644
--- a/dlls/gdi32/gdi_private.h
+++ b/dlls/gdi32/gdi_private.h
@@ -438,7 +438,6 @@ extern BOOL WineEngRemoveFontResourceEx(LPCWSTR, DWORD, PVOID) DECLSPEC_HIDDEN;
/* gdiobj.c */
extern BOOL GDI_Init(void) DECLSPEC_HIDDEN;
extern HGDIOBJ alloc_gdi_handle( GDIOBJHDR *obj, WORD type, const struct gdi_obj_funcs *funcs ) DECLSPEC_HIDDEN;
-extern void *GDI_ReallocObject( WORD, HGDIOBJ, void *obj ) DECLSPEC_HIDDEN;
extern void *free_gdi_handle( HGDIOBJ handle ) DECLSPEC_HIDDEN;
extern void *GDI_GetObjPtr( HGDIOBJ, WORD ) DECLSPEC_HIDDEN;
extern void GDI_ReleaseObj( HGDIOBJ ) DECLSPEC_HIDDEN;
diff --git a/dlls/gdi32/gdiobj.c b/dlls/gdi32/gdiobj.c
index cc87c6e..5557787 100644
--- a/dlls/gdi32/gdiobj.c
+++ b/dlls/gdi32/gdiobj.c
@@ -662,33 +662,6 @@ HGDIOBJ alloc_gdi_handle( GDIOBJHDR *obj, WORD type, const struct gdi_obj_funcs
/***********************************************************************
- * GDI_ReallocObject
- *
- * The object ptr must have been obtained with GDI_GetObjPtr.
- * The new pointer must be released with GDI_ReleaseObj.
- */
-void *GDI_ReallocObject( WORD size, HGDIOBJ handle, void *object )
-{
- void *new_ptr = NULL;
- int i;
-
- i = ((ULONG_PTR)handle >> 2) - FIRST_LARGE_HANDLE;
- if (i >= 0 && i < MAX_LARGE_HANDLES && large_handles[i])
- {
- new_ptr = HeapReAlloc( GetProcessHeap(), 0, large_handles[i], size );
- if (new_ptr) large_handles[i] = new_ptr;
- }
- else ERR( "Invalid handle %p\n", handle );
- if (!new_ptr)
- {
- TRACE("(%p): leave %d\n", handle, GDI_level.crst.RecursionCount);
- _LeaveSysLevel( &GDI_level );
- }
- return new_ptr;
-}
-
-
-/***********************************************************************
* free_gdi_handle
*
* Free a GDI handle and return a pointer to the object.
More information about the wine-cvs
mailing list