s3: Remove unused delete_negative_conn_cache()
authorVolker Lendecke <vl@samba.org>
Thu, 24 Dec 2009 12:51:50 +0000 (13:51 +0100)
committerVolker Lendecke <vl@samba.org>
Thu, 24 Dec 2009 14:24:35 +0000 (15:24 +0100)
source3/include/proto.h
source3/libsmb/conncache.c

index a68ec8bbec05377c5e6ff64aeb85ef6e767bc8d2..f81ab916030261ac15818693aded0047bf845054 100644 (file)
@@ -3057,7 +3057,6 @@ NTSTATUS cli_trans(TALLOC_CTX *mem_ctx, struct cli_state *cli,
 NTSTATUS check_negative_conn_cache_timeout( const char *domain, const char *server, unsigned int failed_cache_timeout );
 NTSTATUS check_negative_conn_cache( const char *domain, const char *server);
 void add_failed_connection_entry(const char *domain, const char *server, NTSTATUS result) ;
-void delete_negative_conn_cache(const char *domain, const char *server);
 void flush_negative_conn_cache_for_domain(const char *domain);
 
 /* The following definitions come from ../librpc/rpc/dcerpc_error.c  */
index 1ec303f1840c9365d33925b44937c4273d1fa1af..46dc6d6364e0eb6fbe7bcdfaf1937113e6e743e1 100644 (file)
@@ -153,29 +153,6 @@ NTSTATUS check_negative_conn_cache( const char *domain, const char *server)
        return result;
 }
 
-/**
- * Delete any negative cache entry for the given domain/server
- *
- * @param[in] domain
- * @param[in] server may be either a FQDN or an IP address
- */
-void delete_negative_conn_cache(const char *domain, const char *server)
-{
-       char *key = NULL;
-
-       key = negative_conn_cache_keystr(domain, server);
-       if (key == NULL)
-               goto done;
-
-       gencache_del(key);
-       DEBUG(9,("delete_negative_conn_cache removing domain %s server %s\n",
-                 domain, server));
- done:
-       TALLOC_FREE(key);
-       return;
-}
-
-
 /**
  * Add an entry to the failed connection cache
  *