s3-param: Remove unused snum2params_static
authorAndrew Bartlett <abartlet@samba.org>
Mon, 16 May 2011 12:27:28 +0000 (22:27 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 18 May 2011 14:12:08 +0000 (16:12 +0200)
source3/include/proto.h
source3/param/loadparm.c

index 39d607c205a125644b2db67dbe40f075ad6c2918..96ccd34345369b13c68ad6393f657304399d7617 100644 (file)
@@ -1675,7 +1675,6 @@ int lp_servicenumber(const char *pszServiceName);
 bool share_defined(const char *service_name);
 struct share_params *get_share_params(TALLOC_CTX *mem_ctx,
                                      const char *sharename);
-struct share_params *snum2params_static(int snum);
 const char *volume_label(int snum);
 bool lp_domain_master(void);
 bool lp_domain_master_true_or_auto(void);
index b80c31bedf6182abd37f246932101498e73fc2e4..3ed2308c8623e73698e986e6761442c925ccaf19 100644 (file)
@@ -9775,18 +9775,6 @@ struct share_params *get_share_params(TALLOC_CTX *mem_ctx,
        return result;
 }
 
-/*
- * This is a hack for a transition period until we transformed all code from
- * service numbers to struct share_params.
- */
-
-struct share_params *snum2params_static(int snum)
-{
-       static struct share_params result;
-       result.service = snum;
-       return &result;
-}
-
 /*******************************************************************
  A useful volume label function. 
 ********************************************************************/