[geany/geany] 58164c: Remove static function utils_slist_remove_next()
Nick Treleaven
git-noreply at xxxxx
Thu Jan 26 16:10:53 UTC 2012
Branch: refs/heads/master
Author: Nick Treleaven <nick.treleaven at btinternet.com>
Committer: Nick Treleaven <nick.treleaven at btinternet.com>
Date: Thu, 26 Jan 2012 16:10:53
Commit: 58164c65f0bbc5bfd13c84aeabaca203befbb1a7
https://github.com/geany/geany/commit/58164c65f0bbc5bfd13c84aeabaca203befbb1a7
Log Message:
-----------
Remove static function utils_slist_remove_next()
Modified Paths:
--------------
src/utils.c
Modified: src/utils.c
18 files changed, 5 insertions(+), 13 deletions(-)
===================================================================
@@ -1978,17 +1978,6 @@ void utils_tidy_path(gchar *filename)
}
-static void utils_slist_remove_next(GSList *node)
-{
- GSList *old = node->next;
-
- g_return_if_fail(old);
-
- node->next = old->next;
- g_slist_free_1(old);
-}
-
-
/* Gets list of sorted filenames with no path and no duplicates from user and system config */
GSList *utils_get_config_files(const gchar *subdir)
{
@@ -2011,8 +2000,11 @@ static void utils_slist_remove_next(GSList *node)
{
if (node->next && utils_str_equal(node->next->data, node->data))
{
- g_free(node->next->data);
- utils_slist_remove_next(node);
+ GSList *old = node->next;
+
+ g_free(old->data);
+ node->next = old->next;
+ g_slist_free1(old);
}
}
g_free(path);
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: TBD).
More information about the Commits
mailing list