Remove module_path_get_name() - it's not used anywhere anymore and was a bad idea...
authorJelmer Vernooij <jelmer@samba.org>
Fri, 30 May 2003 16:36:38 +0000 (16:36 +0000)
committerJelmer Vernooij <jelmer@samba.org>
Fri, 30 May 2003 16:36:38 +0000 (16:36 +0000)
(This used to be commit b45a67e7a9d0fab5b4af701a9fd483cc4897ab7f)

source3/lib/module.c

index 4437d085f9c18df2945efef74519e430fee9576a..ac4fe57a2c8a3b86463532bbed60aede178712f6 100644 (file)
@@ -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
  *