diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-05-23 15:50:49 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-05-23 15:50:49 +0000 |
commit | 90ccea6639fe76ecbddddb11561addbfbb4edb24 (patch) | |
tree | c110e73f723be5771076fb0b0fd2afa328fdeef0 /loader | |
parent | abe39bb76f7fe897095c5a803685b2a3a9d02ce5 (diff) | |
download | mpv-90ccea6639fe76ecbddddb11561addbfbb4edb24.tar.bz2 mpv-90ccea6639fe76ecbddddb11561addbfbb4edb24.tar.xz |
Remove unused function MODULE_DecRefCount(), fixes the warning:
loader/module.c:618: warning: 'MODULE_DecRefCount' defined but not used
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31195 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'loader')
-rw-r--r-- | loader/module.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/loader/module.c b/loader/module.c index b9dcfa5869..4a292ce0ac 100644 --- a/loader/module.c +++ b/loader/module.c @@ -347,9 +347,6 @@ static WIN_BOOL MODULE_FreeLibrary( WINE_MODREF *wm ) { 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 @@ WIN_BOOL WINAPI FreeLibrary(HINSTANCE hLibModule) } /*********************************************************************** - * 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 ) |