1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

Remove module_path_get_name() - it's not used anywhere anymore and was a bad idea anyway.

This commit is contained in:
Jelmer Vernooij 0001-01-01 00:00:00 +00:00
parent 2e894f279c
commit b45a67e7a9

View 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
*