Mercurial > geeqie
diff src/ui_fileops.c @ 702:e07895754e65
Drop concat_dir_and_file() and use g_build_filename() instead.
author | zas_ |
---|---|
date | Tue, 20 May 2008 22:09:04 +0000 |
parents | 28af4b6dd9ef |
children | 911e3769b60c |
line wrap: on
line diff
--- a/src/ui_fileops.c Tue May 20 22:00:14 2008 +0000 +++ b/src/ui_fileops.c Tue May 20 22:09:04 2008 +0000 @@ -618,15 +618,6 @@ return g_strndup(path, (gsize) n); } -gchar *concat_dir_and_file(const gchar *base, const gchar *name) -{ - if (!base || !name) return NULL; - - if (strcmp(base, "/") == 0) return g_strconcat(base, name, NULL); - - return g_strconcat(base, "/", name, NULL); -} - const gchar *extension_from_path(const gchar *path) { if (!path) return NULL;