1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

core: remove dead assignments

This commit is contained in:
Sébastien Helleu
2022-07-24 23:01:19 +02:00
parent 68ad24f2df
commit 2a145d7cc1
3 changed files with 6 additions and 6 deletions
-1
View File
@@ -204,7 +204,6 @@ hook_hsignal_add_to_infolist (struct t_infolist_item *item,
if (!infolist_new_var_pointer (item, "callback", HOOK_HSIGNAL(hook, callback)))
return 0;
i = 0;
for (i = 0; i < HOOK_HSIGNAL(hook, num_signals); i++)
{
snprintf (option_name, sizeof (option_name), "signal_%05d", i);
-1
View File
@@ -205,7 +205,6 @@ hook_signal_add_to_infolist (struct t_infolist_item *item,
if (!infolist_new_var_pointer (item, "callback", HOOK_SIGNAL(hook, callback)))
return 0;
i = 0;
for (i = 0; i < HOOK_SIGNAL(hook, num_signals); i++)
{
snprintf (option_name, sizeof (option_name), "signal_%05d", i);
+6 -4
View File
@@ -867,12 +867,13 @@ gui_line_has_highlight (struct t_gui_line *line)
const char *ptr_nick;
regmatch_t regex_match;
rc = 0;
/* remove color codes from line message */
msg_no_color = gui_color_decode (line->data->message, NULL);
if (!msg_no_color)
return 0;
{
rc = 0;
goto end;
}
ptr_msg_no_color = msg_no_color;
/*
@@ -1047,7 +1048,8 @@ gui_line_has_highlight (struct t_gui_line *line)
}
end:
free (msg_no_color);
if (msg_no_color)
free (msg_no_color);
return rc;
}