s3: Remove unused count_all_current_connections()
authorVolker Lendecke <vl@samba.org>
Fri, 26 Feb 2010 16:47:44 +0000 (17:47 +0100)
committerVolker Lendecke <vl@samba.org>
Sun, 28 Feb 2010 19:45:21 +0000 (20:45 +0100)
source3/include/proto.h
source3/smbd/connection.c
source3/winbindd/winbindd_proto.h

index 3af9cb053e429b6f06e18f40b546402edcf41c56..18e60ca07817d06a6c96ca2e139f2faf1591b91f 100644 (file)
@@ -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);
index 3b72a9505a13d33c5c0f4a969ce30bcf1483edc7..34903bbc27485d96985932cbb8fad0ee33aac954 100644 (file)
@@ -117,15 +117,6 @@ int count_current_connections( const char *sharename, bool clear  )
        return cs.curr_connections;
 }
 
-/****************************************************************************
- 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.
 ****************************************************************************/
index d3371b27fe872a443e45481b03f4d34e7c2c7a06..ae468436b61053f968ca91ba830148957423251f 100644 (file)
@@ -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);