diff options
author | Volker Lendecke <vl@samba.org> | 2009-12-24 13:51:50 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-12-24 15:24:35 +0100 |
commit | 96207912cb4a4073849be95458a4e4e2d54bbb34 (patch) | |
tree | 32c61c9eab6c016c6d342f3edebd6e3fe50ba006 | |
parent | ffab1a23187c720402008513e73d3fb5a17de40a (diff) | |
download | samba-96207912cb4a4073849be95458a4e4e2d54bbb34.tar.gz samba-96207912cb4a4073849be95458a4e4e2d54bbb34.tar.bz2 samba-96207912cb4a4073849be95458a4e4e2d54bbb34.zip |
s3: Remove unused delete_negative_conn_cache()
-rw-r--r-- | source3/include/proto.h | 1 | ||||
-rw-r--r-- | source3/libsmb/conncache.c | 23 |
2 files changed, 0 insertions, 24 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index a68ec8bbec..f81ab91603 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -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 */ diff --git a/source3/libsmb/conncache.c b/source3/libsmb/conncache.c index 1ec303f184..46dc6d6364 100644 --- a/source3/libsmb/conncache.c +++ b/source3/libsmb/conncache.c @@ -154,29 +154,6 @@ NTSTATUS check_negative_conn_cache( const char *domain, const char *server) } /** - * 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 * * @param[in] domain |