changeset 31138:3cf08a0ae965

Remove unused function MODULE_DecRefCount(), fixes the warning: loader/module.c:618: warning: 'MODULE_DecRefCount' defined but not used
author diego
date Sun, 23 May 2010 15:50:49 +0000
parents 72638e3330a3
children 9a2e299dc256
files loader/module.c
diffstat 1 files changed, 0 insertions(+), 33 deletions(-) [+]
line wrap: on
line diff
--- a/loader/module.c	Sun May 23 15:07:34 2010 +0000
+++ b/loader/module.c	Sun May 23 15:50:49 2010 +0000
@@ -347,9 +347,6 @@
 {
     TRACE("(%s) - START\n", wm->modname );
 
-    /* Recursively decrement reference counts */
-    //MODULE_DecRefCount( wm );
-
     /* Call process detach notifications */
     MODULE_DllProcessDetach( wm, FALSE, NULL );
 
@@ -610,36 +607,6 @@
 }
 
 /***********************************************************************
- *           MODULE_DecRefCount
- *
- * NOTE: Assumes that the process critical section is held!
- */
-static void MODULE_DecRefCount( WINE_MODREF *wm )
-{
-    int i;
-
-    if ( wm->flags & WINE_MODREF_MARKER )
-        return;
-
-    if ( wm->refCount <= 0 )
-        return;
-
-    --wm->refCount;
-    TRACE("(%s) refCount: %d\n", wm->modname, wm->refCount );
-
-    if ( wm->refCount == 0 )
-    {
-        wm->flags |= WINE_MODREF_MARKER;
-
-        for ( i = 0; i < wm->nDeps; i++ )
-            if ( wm->deps[i] )
-                MODULE_DecRefCount( wm->deps[i] );
-
-        wm->flags &= ~WINE_MODREF_MARKER;
-    }
-}
-
-/***********************************************************************
  *           GetProcAddress   		(KERNEL32.257)
  */
 FARPROC WINAPI GetProcAddress( HMODULE hModule, LPCSTR function )