summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2003-05-30 16:36:38 +0000
committerJelmer Vernooij <jelmer@samba.org>2003-05-30 16:36:38 +0000
commitff0a111d37e6da352f6a00a45aee3231c737af64 (patch)
treef4e84026147104599f5c5df03a6e18b58f44335f
parentdc02f81650abc7545d083262afb1c99b6398f58f (diff)
downloadsamba-ff0a111d37e6da352f6a00a45aee3231c737af64.tar.gz
samba-ff0a111d37e6da352f6a00a45aee3231c737af64.tar.bz2
samba-ff0a111d37e6da352f6a00a45aee3231c737af64.zip
Remove module_path_get_name() - it's not used anywhere anymore and was a bad idea anyway.
(This used to be commit b45a67e7a9d0fab5b4af701a9fd483cc4897ab7f)
-rw-r--r--source3/lib/module.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/source3/lib/module.c b/source3/lib/module.c
index 4437d085f9..ac4fe57a2c 100644
--- a/source3/lib/module.c
+++ b/source3/lib/module.c
@@ -130,29 +130,6 @@ void init_modules(void)
}
-/*************************************************************************
- * This functions /path/to/foobar.so -> foobar
- ************************************************************************/
-void module_path_get_name(const char *path, pstring name)
-{
- char *s;
-
- /* First, make the path relative */
- s = strrchr(path, '/');
- if(s) pstrcpy(name, s+1);
- else pstrcpy(name, path);
-
- if (dyn_SHLIBEXT && *dyn_SHLIBEXT && strlen(dyn_SHLIBEXT) < strlen(name)) {
- int n = strlen(name) - strlen(dyn_SHLIBEXT);
-
- /* Remove extension if necessary */
- if (name[n-1] == '.' && !strcmp(name+n, dyn_SHLIBEXT)) {
- name[n-1] = '\0';
- }
- }
-}
-
-
/***************************************************************************
* This Function registers a idle event
*