summaryrefslogtreecommitdiff
path: root/source/smbd/conn.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/smbd/conn.c')
-rw-r--r--source/smbd/conn.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/source/smbd/conn.c b/source/smbd/conn.c
index ed8bdefe2e1..610e6419214 100644
--- a/source/smbd/conn.c
+++ b/source/smbd/conn.c
@@ -86,28 +86,6 @@ connection_struct *conn_find(unsigned cnum)
}
/****************************************************************************
- Find a conn given a service name.
-****************************************************************************/
-
-connection_struct *conn_find_byname(const char *service)
-{
- connection_struct *conn;
-
- for (conn=Connections;conn;conn=conn->next) {
- if (strequal(lp_servicename(SNUM(conn)),service)) {
- if (conn != Connections) {
- /* Promote if not first. */
- DLIST_PROMOTE(Connections, conn);
- }
- return conn;
- }
- }
-
- return NULL;
-}
-
-
-/****************************************************************************
find first available connection slot, starting from a random position.
The randomisation stops problems with the server dieing and clients
thinking the server is still available.