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)
This commit is contained in:
parent
ad77ee15da
commit
5cd5734642
@ -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 */
|
||||
|
||||
|
@ -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]);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user