smbd: remove unused set_current_service()
authorStefan Metzmacher <metze@samba.org>
Thu, 14 Jun 2018 09:22:31 +0000 (11:22 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 18 Jun 2018 06:59:17 +0000 (08:59 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/proto.h
source3/smbd/service.c

index a6b8a05cb4c67bd4be2fe0438a55edb0862e2f3b..0c4c68187c224aecaeada49e148d9f4a32ec94dc 100644 (file)
@@ -1063,7 +1063,6 @@ bool set_conn_connectpath(connection_struct *conn, const char *connectpath);
 NTSTATUS set_conn_force_user_group(connection_struct *conn, int snum);
 void set_current_case_sensitive(connection_struct *conn, uint16_t flags);
 bool chdir_current_service(connection_struct *conn);
-bool set_current_service(connection_struct *conn, uint16_t flags, bool do_chdir);
 void load_registry_shares(void);
 int add_home_service(const char *service, const char *username, const char *homedir);
 int find_service(TALLOC_CTX *ctx, const char *service, char **p_service_out);
index 612c88357ef7775aba66df95ef596343b6da088a..a22a0270cd79b4be4f809d91b83b84bc659d8286 100644 (file)
@@ -168,26 +168,6 @@ bool chdir_current_service(connection_struct *conn)
        return true;
 }
 
-bool set_current_service(connection_struct *conn, uint16_t flags, bool do_chdir)
-{
-       bool ok;
-
-       if (conn == NULL)  {
-               return false;
-       }
-
-       set_current_case_sensitive(conn, flags);
-
-       if (do_chdir) {
-               ok = chdir_current_service(conn);
-               if (!ok) {
-                       return false;
-               }
-       }
-
-       return true;
-}
-
 /****************************************************************************
  do some basic sainity checks on the share.  
  This function modifies dev, ecode.