From c8945279e72aee5511739b2ce0d7ddd5535fd1cb Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 9 Sep 2011 22:10:12 +1000 Subject: lib/util: Remove unused module loading functions --- lib/util/modules.c | 9 ++------- lib/util/samba_modules.h | 7 ------- 2 files changed, 2 insertions(+), 14 deletions(-) (limited to 'lib') diff --git a/lib/util/modules.c b/lib/util/modules.c index d25cabf760..5af7fa98d0 100644 --- a/lib/util/modules.c +++ b/lib/util/modules.c @@ -56,7 +56,7 @@ init_module_fn load_module(TALLOC_CTX *mem_ctx, const char *path) * Obtain list of init functions from the modules in the specified * directory */ -init_module_fn *load_modules(TALLOC_CTX *mem_ctx, const char *path) +static init_module_fn *load_modules(TALLOC_CTX *mem_ctx, const char *path) { DIR *dir; struct dirent *entry; @@ -180,11 +180,6 @@ static NTSTATUS do_smb_load_module(const char *module_name, bool is_probe) return status; } -NTSTATUS smb_load_module(const char *module_name) -{ - return do_smb_load_module(module_name, false); -} - /* Load all modules in list and return number of * modules that has been successfully loaded */ int smb_load_modules(const char **modules) @@ -193,7 +188,7 @@ int smb_load_modules(const char **modules) int success = 0; for(i = 0; modules[i]; i++){ - if(NT_STATUS_IS_OK(smb_load_module(modules[i]))) { + if(NT_STATUS_IS_OK(do_smb_load_module(modules[i], false))) { success++; } } diff --git a/lib/util/samba_modules.h b/lib/util/samba_modules.h index 2cca622e50..df24eb7621 100644 --- a/lib/util/samba_modules.h +++ b/lib/util/samba_modules.h @@ -38,12 +38,6 @@ NTSTATUS init_samba_module(void); */ init_module_fn load_module(TALLOC_CTX *mem_ctx, const char *path); -/** - * Obtain list of init functions from the modules in the specified - * directory - */ -init_module_fn *load_modules(TALLOC_CTX *mem_ctx, const char *path); - /** * Run the specified init functions. * @@ -58,7 +52,6 @@ bool run_init_functions(init_module_fn *fns); */ init_module_fn *load_samba_modules(TALLOC_CTX *mem_ctx, const char *subsystem); -NTSTATUS smb_load_module(const char *module_name); int smb_load_modules(const char **modules); NTSTATUS smb_probe_module(const char *subsystem, const char *module); -- cgit