forked from enlightenment/efl
Strip is done in ecore_desktop_home_get().
home is never used. SVN revision: 25019
This commit is contained in:
parent
7b44f2f768
commit
e480b9d84c
|
@ -47,7 +47,6 @@ ecore_desktop_icon_find(const char *icon, const char *icon_size, const char *ico
|
|||
{
|
||||
char icn[PATH_MAX], path[PATH_MAX];
|
||||
const char *dir;
|
||||
char *home;
|
||||
|
||||
if (icon == NULL)
|
||||
return NULL;
|
||||
|
@ -61,8 +60,6 @@ ecore_desktop_icon_find(const char *icon, const char *icon_size, const char *ico
|
|||
if (icon_theme == NULL)
|
||||
icon_theme="hicolor";
|
||||
|
||||
home = ecore_desktop_home_get();
|
||||
|
||||
snprintf(icn, sizeof(icn), "%s", icon);
|
||||
#ifdef DEBUG
|
||||
fprintf(stderr, "\tTrying To Find Icon %s\n", icn);
|
||||
|
|
|
@ -84,15 +84,6 @@ ecore_desktop_paths_init()
|
|||
|
||||
gnome_data = ecore_list_new();
|
||||
home = ecore_desktop_home_get();
|
||||
if (home)
|
||||
{
|
||||
int last;
|
||||
|
||||
/* Strip trailing slash of home. */
|
||||
last = strlen(home) - 1;
|
||||
if ((last >= 0) && (home[last] == '/'))
|
||||
home[last] = '\0';
|
||||
}
|
||||
|
||||
if (gnome_data)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue