lib/util: Remove unused module loading functions
authorAndrew Bartlett <abartlet@samba.org>
Fri, 9 Sep 2011 12:10:12 +0000 (22:10 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 6 Oct 2011 05:18:07 +0000 (07:18 +0200)
lib/util/modules.c
lib/util/samba_modules.h

index d25cabf7602b086325f938895d42910d9939c685..5af7fa98d0d1441a846720a1c26b5d79a751e68e 100644 (file)
@@ -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++;
                }
        }
index 2cca622e50deab50176e167a3d2af351ab603053..df24eb7621e23a0d23f4c29650c768b5202145c8 100644 (file)
@@ -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);