From 7a11e5de395c928e4a37c58a7a7ac21a314449fe Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 16 May 2011 22:27:28 +1000 Subject: [PATCH] s3-param: Remove unused snum2params_static --- source3/include/proto.h | 1 - source3/param/loadparm.c | 12 ------------ 2 files changed, 13 deletions(-) diff --git a/source3/include/proto.h b/source3/include/proto.h index 39d607c205a..96ccd343453 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 b80c31bedf6..3ed2308c862 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. ********************************************************************/ -- 2.11.4.GIT