Andrew Talbot : netapi32: Remove unused functions.
Alexandre Julliard
julliard at winehq.org
Fri Feb 6 09:55:42 CST 2009
Module: wine
Branch: master
Commit: e2eaface453edf423b9830f589fa27ba01a95f6a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e2eaface453edf423b9830f589fa27ba01a95f6a
Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date: Thu Feb 5 20:01:11 2009 +0000
netapi32: Remove unused functions.
---
dlls/netapi32/nbnamecache.c | 25 -------------------------
dlls/netapi32/nbnamecache.h | 9 ---------
2 files changed, 0 insertions(+), 34 deletions(-)
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-cvs
mailing list