summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-05-16 22:27:28 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-05-18 16:12:08 +0200
commit7a11e5de395c928e4a37c58a7a7ac21a314449fe (patch)
tree45213b9102d5813fe0eac45e0467b07709dc7e98
parentb3258addb4bc861d8d0cf8842397c209ec2d3704 (diff)
downloadsamba-7a11e5de395c928e4a37c58a7a7ac21a314449fe.tar.gz
samba-7a11e5de395c928e4a37c58a7a7ac21a314449fe.tar.bz2
samba-7a11e5de395c928e4a37c58a7a7ac21a314449fe.zip
s3-param: Remove unused snum2params_static
-rw-r--r--source3/include/proto.h1
-rw-r--r--source3/param/loadparm.c12
2 files changed, 0 insertions, 13 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 39d607c205..96ccd34345 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -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);
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index b80c31bedf..3ed2308c86 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -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.
********************************************************************/