diff options
author | Michael Adam <obnox@samba.org> | 2009-01-21 16:24:32 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2009-01-21 18:40:54 +0100 |
commit | 52b77c928c14c9742293bcd0b0f82f56696fb5b3 (patch) | |
tree | 5348afddcd175ecf046b2afcf1388043abc53c4e | |
parent | 3089cfcc4b75088db4dd5683902be81bc4ee48b4 (diff) | |
download | samba-52b77c928c14c9742293bcd0b0f82f56696fb5b3.tar.gz samba-52b77c928c14c9742293bcd0b0f82f56696fb5b3.tar.bz2 samba-52b77c928c14c9742293bcd0b0f82f56696fb5b3.zip |
s3:libsmbconf: remove unused function smbconf_is_writeable_bystring()
Michael
-rw-r--r-- | source3/lib/smbconf/smbconf.c | 26 | ||||
-rw-r--r-- | source3/lib/smbconf/smbconf.h | 1 |
2 files changed, 0 insertions, 27 deletions
diff --git a/source3/lib/smbconf/smbconf.c b/source3/lib/smbconf/smbconf.c index 86c1692574..e5a865a62b 100644 --- a/source3/lib/smbconf/smbconf.c +++ b/source3/lib/smbconf/smbconf.c @@ -60,32 +60,6 @@ bool smbconf_is_writeable(struct smbconf_ctx *ctx) } /** - * utitlity function: - * check whether a config source is writeable, - * given only the name of the config source. - */ -bool smbconf_is_writeable_bystring(const char *configsource) -{ - struct smbconf_ctx *conf_ctx; - WERROR err; - bool ret; - TALLOC_CTX *mem_ctx = talloc_stackframe; - - err = smbconf_init_reg(mem_ctx, &conf_ctx, configsource); - if (!W_ERROR_IS_OK(err)) { - ret = false; - goto done; - } - - ret = smbconf_is_writeable(conf_ctx); - -done: - smbconf_shutdown(conf_ctx); - TALLOC_FREE(mem_ctx); - return ret; -} - -/** * Close the configuration. */ void smbconf_shutdown(struct smbconf_ctx *ctx) diff --git a/source3/lib/smbconf/smbconf.h b/source3/lib/smbconf/smbconf.h index f65842ee34..9ff9a83fad 100644 --- a/source3/lib/smbconf/smbconf.h +++ b/source3/lib/smbconf/smbconf.h @@ -58,7 +58,6 @@ WERROR smbconf_init_txt(TALLOC_CTX *mem_ctx, */ bool smbconf_backend_requires_messaging(struct smbconf_ctx *ctx); bool smbconf_is_writeable(struct smbconf_ctx *ctx); -bool smbconf_is_writeable_bystring(const char *configsource); void smbconf_shutdown(struct smbconf_ctx *ctx); bool smbconf_changed(struct smbconf_ctx *ctx, struct smbconf_csn *csn, const char *service, const char *param); |