1
0
Fork 0

[config] Commented unused functions

This commit is contained in:
Witold Filipczyk 2022-12-26 17:52:14 +01:00
parent 7ea7cacade
commit d7dacd2dbc
1 changed files with 23 additions and 21 deletions

View File

@ -85,27 +85,6 @@ test_confdir(const char *home, const char *path,
return NULL;
}
/* TODO: Check possibility to use <libgen.h> dirname. */
static char *
elinks_dirname(char *path)
{
int i;
char *dir;
if (!path) return NULL;
dir = stracpy(path);
if (!dir) return NULL;
for (i = strlen(dir) - 1; i >= 0; i--)
if (dir_sep(dir[i]))
break;
dir[i + 1] = 0;
return dir;
}
char *
get_xdg_config_home(void)
{
@ -158,6 +137,28 @@ get_xdg_config_home(void)
return NULL;
}
#if 0
/* TODO: Check possibility to use <libgen.h> dirname. */
static char *
elinks_dirname(char *path)
{
int i;
char *dir;
if (!path) return NULL;
dir = stracpy(path);
if (!dir) return NULL;
for (i = strlen(dir) - 1; i >= 0; i--)
if (dir_sep(dir[i]))
break;
dir[i + 1] = 0;
return dir;
}
static char *
get_home(void)
{
@ -198,6 +199,7 @@ end:
return home_elinks;
}
#endif
void
init_home(void)