[geany/geany] 5cd573: Minor cleanup
Jiří Techet
git-noreply at xxxxx
Thu Feb 11 14:36:00 UTC 2016
Branch: refs/heads/master
Author: Jiří Techet <techet at gmail.com>
Committer: Jiří Techet <techet at gmail.com>
Date: Mon, 18 Jan 2016 21:56:10 UTC
Commit: 5cd573464227268a9b3c10bca1ee274340ceeaae
https://github.com/geany/geany/commit/5cd573464227268a9b3c10bca1ee274340ceeaae
Log Message:
-----------
Minor cleanup
Make the unused code compile and remove unused tm_get_current_function()
(we have similar symbols_get_current_function() and there's no reason
to keep it)
Modified Paths:
--------------
tagmanager/src/tm_tag.c
tagmanager/src/tm_workspace.c
Modified: tagmanager/src/tm_tag.c
12 lines changed, 0 insertions(+), 12 deletions(-)
===================================================================
@@ -1227,18 +1227,6 @@ gboolean tm_tag_is_anon(const TMTag *tag)
return FALSE;
}
-#if 0
-/* Returns TMTag to function or method which "own" given line
- @param line Current line in edited file.
- @param file_tags A GPtrArray of edited file TMTag pointers.
- @return TMTag pointers to owner function. */
-static const TMTag *
-tm_get_current_function (GPtrArray * file_tags, const gulong line)
-{
- return tm_get_current_tag (file_tags, line, tm_tag_function_t | tm_tag_method_t);
-}
-#endif
-
#ifdef TM_DEBUG /* various debugging functions */
Modified: tagmanager/src/tm_workspace.c
4 lines changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -1107,7 +1107,7 @@ static const GPtrArray *tm_workspace_get_parents(const gchar *name)
parents = g_ptr_array_new();
else
g_ptr_array_set_size(parents, 0);
- matches = tm_workspace_find(name, tm_tag_class_t, type, FALSE, -1);
+ matches = tm_workspace_find(name, NULL, tm_tag_class_t, type, -1);
if ((NULL == matches) || (0 == matches->len))
return NULL;
g_ptr_array_add(parents, matches->pdata[0]);
@@ -1126,7 +1126,7 @@ static const GPtrArray *tm_workspace_get_parents(const gchar *name)
}
if (parents->len == j)
{
- matches = tm_workspace_find(*klass, tm_tag_class_t, type, FALSE, -1);
+ matches = tm_workspace_find(*klass, NULL, tm_tag_class_t, type, -1);
if ((NULL != matches) && (0 < matches->len))
g_ptr_array_add(parents, matches->pdata[0]);
}
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list