diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-02-09 13:24:46 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-02-10 16:45:13 +1100 |
commit | 3d63100890371b25a873afe0fd240d6069e274dc (patch) | |
tree | ced82d8ce7acb3d0c79ff2a1d07f70ed715b3a97 | |
parent | a74e556a7c2446a25f796a76043d7cdf2d8745b3 (diff) | |
download | samba-3d63100890371b25a873afe0fd240d6069e274dc.tar.gz samba-3d63100890371b25a873afe0fd240d6069e274dc.tar.bz2 samba-3d63100890371b25a873afe0fd240d6069e274dc.zip |
s3-param: Remove unused share_defined()
Found by callcatcher: http://www.skynet.ie/~caolan/Packages/callcatcher.html
Andrew Bartlett
-rw-r--r-- | source3/include/proto.h | 1 | ||||
-rw-r--r-- | source3/param/loadparm.c | 5 |
2 files changed, 0 insertions, 6 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index 7527e04e67..b0f17b3a4a 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -1571,7 +1571,6 @@ int lp_numservices(void); void lp_dump(FILE *f, bool show_defaults, int maxtoprint); void lp_dump_one(FILE * f, bool show_defaults, int snum); 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); const char *volume_label(int snum); diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 0c769e61d2..c8d5a0994f 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -9266,11 +9266,6 @@ int lp_servicenumber(const char *pszServiceName) return (iService); } -bool share_defined(const char *service_name) -{ - return (lp_servicenumber(service_name) != -1); -} - /******************************************************************* A useful volume label function. ********************************************************************/ |