Moved create_config_dir function to profanity.c

This commit is contained in:
James Booth
2012-08-26 18:01:44 +01:00
parent fe519410b1
commit 6f2870ed7d
3 changed files with 12 additions and 11 deletions

View File

@@ -36,15 +36,6 @@ p_slist_free_full(GSList *items, GDestroyNotify free_func)
g_slist_free (items);
}
void
create_config_directory()
{
GString *dir = g_string_new(getenv("HOME"));
g_string_append(dir, "/.profanity");
create_dir(dir->str);
g_string_free(dir, TRUE);
}
void
create_dir(char *name)
{