netapi32: Remove unused functions

Andrew Talbot andrew.talbot at talbotville.com
Thu Feb 5 14:01:11 CST 2009


Changelog:
    netapi32: Remove unused functions.

diff --git a/dlls/netapi32/nbnamecache.c b/dlls/netapi32/nbnamecache.c
index b9ed159..5f9b0b5 100644
--- a/dlls/netapi32/nbnamecache.c
+++ b/dlls/netapi32/nbnamecache.c
@@ -176,31 +176,6 @@ const NBNameCacheEntry *NBNameCacheFindEntry(struct NBNameCache *cache,
     return ret;
 }
 
-BOOL NBNameCacheUpdateNBName(struct NBNameCache *cache,
- const UCHAR name[NCBNAMSZ], const UCHAR nbname[NCBNAMSZ])
-{
-    BOOL ret;
-
-    if (cache)
-    {
-        NBNameCacheNode **node;
-
-        EnterCriticalSection(&cache->cs);
-        node = NBNameCacheWalk(cache, (const char *)name);
-        if (node && *node && (*node)->entry)
-        {
-            memcpy((*node)->entry->nbname, nbname, NCBNAMSZ);
-            ret = TRUE;
-        }
-        else
-            ret = FALSE;
-        LeaveCriticalSection(&cache->cs);
-    }
-    else
-        ret = FALSE;
-    return ret;
-}
-
 void NBNameCacheDestroy(struct NBNameCache *cache)
 {
     if (cache)
diff --git a/dlls/netapi32/nbnamecache.h b/dlls/netapi32/nbnamecache.h
index b227ed6..ffefbc5 100644
--- a/dlls/netapi32/nbnamecache.h
+++ b/dlls/netapi32/nbnamecache.h
@@ -68,15 +68,6 @@ BOOL NBNameCacheAddEntry(struct NBNameCache *cache, NBNameCacheEntry *entry);
 const NBNameCacheEntry *NBNameCacheFindEntry(struct NBNameCache *cache,
  const UCHAR name[NCBNAMSZ]);
 
-/* If the entry with name name is in the cache, updates its nbname member to
- * nbname.  The entry's expire time is implicitly updated to entryExpireTimeMS
- * + the current time in MS, since getting the NetBIOS name meant validating
- * the name and address anyway.
- * Returns TRUE on success or FALSE on failure.
- */
-BOOL NBNameCacheUpdateNBName(struct NBNameCache *cache,
- const UCHAR name[NCBNAMSZ], const UCHAR nbname[NCBNAMSZ]);
-
 void NBNameCacheDestroy(struct NBNameCache *cache);
 
 #endif /* ndef __WINE_NBNAMECACHE_H */



More information about the wine-patches mailing list