From 5c40aa59d7d0740b2cdb0201b8d0ea7c3f9f3882 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 26 Feb 2010 17:47:44 +0100 Subject: [PATCH] s3: Remove unused count_all_current_connections() --- source3/include/proto.h | 1 - source3/smbd/connection.c | 9 --------- source3/winbindd/winbindd_proto.h | 1 - 3 files changed, 11 deletions(-) diff --git a/source3/include/proto.h b/source3/include/proto.h index 3af9cb053e4..18e60ca0781 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -6155,7 +6155,6 @@ void msg_force_tdis(struct messaging_context *msg, bool yield_connection(connection_struct *conn, const char *name); int count_current_connections( const char *sharename, bool clear ); -int count_all_current_connections(void); bool claim_connection(connection_struct *conn, const char *name, uint32 msg_flags); bool register_message_flags(bool doreg, uint32 msg_flags); diff --git a/source3/smbd/connection.c b/source3/smbd/connection.c index 3b72a9505a1..34903bbc274 100644 --- a/source3/smbd/connection.c +++ b/source3/smbd/connection.c @@ -118,15 +118,6 @@ int count_current_connections( const char *sharename, bool clear ) } /**************************************************************************** - Count the number of connections open across all shares. -****************************************************************************/ - -int count_all_current_connections(void) -{ - return count_current_connections(NULL, True /* clear stale entries */); -} - -/**************************************************************************** Claim an entry in the connections database. ****************************************************************************/ diff --git a/source3/winbindd/winbindd_proto.h b/source3/winbindd/winbindd_proto.h index d3371b27fe8..ae468436b61 100644 --- a/source3/winbindd/winbindd_proto.h +++ b/source3/winbindd/winbindd_proto.h @@ -44,7 +44,6 @@ void debug_unix_user_token(int dbg_class, int dbg_lev, uid_t uid, gid_t gid, bool yield_connection(connection_struct *conn, const char *name); int count_current_connections( const char *sharename, bool clear ); -int count_all_current_connections(void); bool claim_connection(connection_struct *conn, const char *name, uint32 msg_flags); bool register_message_flags(bool doreg, uint32 msg_flags); -- 2.11.4.GIT