s3:smbd: remove now unused conn_close_all()
authorMichael Adam <obnox@samba.org>
Tue, 22 May 2012 11:23:13 +0000 (13:23 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 25 Jun 2012 18:55:06 +0000 (20:55 +0200)
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

source3/smbd/conn_idle.c
source3/smbd/proto.h

index fd3bf9d9d6b1381de6f54c910146927a140fed73..23dcc8988a95cf482319dcf0d13d5a49424e03d2 100644 (file)
@@ -80,21 +80,6 @@ bool conn_idle_all(struct smbd_server_connection *sconn, time_t t)
        return true;
 }
 
-/****************************************************************************
- Close all conn structures.
- Return true if any were closed.
-****************************************************************************/
-
-void conn_close_all(struct smbd_server_connection *sconn)
-{
-       if (sconn->using_smb2) {
-               smbXsrv_session_logoff_all(sconn->conn);
-       } else {
-               smb1srv_tcon_disconnect_all(sconn->conn);
-       }
-}
-
-
 /****************************************************************************
  Forcibly unmount a share.
  All instances of the parameter 'sharename' share are unmounted.
index fc670aba8e8b3551ab73d74fc2ec02fe6abde0d3..ea862713ae70425235c426c2cfd776c2960cdc40 100644 (file)
@@ -146,7 +146,6 @@ NTSTATUS delete_all_streams(connection_struct *conn, const char *fname);
 int conn_num_open(struct smbd_server_connection *sconn);
 bool conn_snum_used(struct smbd_server_connection *sconn, int snum);
 connection_struct *conn_new(struct smbd_server_connection *sconn);
-void conn_close_all(struct smbd_server_connection *sconn);
 bool conn_idle_all(struct smbd_server_connection *sconn, time_t t);
 void conn_clear_vuid_caches(struct smbd_server_connection *sconn, uint64_t vuid);
 void conn_free(connection_struct *conn);