summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/wee-config-file.c2
-rw-r--r--src/gui/gui-buffer.c7
2 files changed, 0 insertions, 9 deletions
diff --git a/src/core/wee-config-file.c b/src/core/wee-config-file.c
index aea260fca..99fcb85ad 100644
--- a/src/core/wee-config-file.c
+++ b/src/core/wee-config-file.c
@@ -1046,7 +1046,6 @@ config_file_option_set (struct t_config_option *option, const char *value,
int run_callback)
{
int value_int, i, rc, new_value_ok, old_value_was_null, old_value;
- int num_colors;
long number;
char *error;
@@ -1267,7 +1266,6 @@ config_file_option_set (struct t_config_option *option, const char *value,
old_value = CONFIG_COLOR(option);
if (option->value)
{
- num_colors = gui_color_get_weechat_colors_number ();
value_int = -1;
new_value_ok = 0;
if (strncmp (value, "++", 2) == 0)
diff --git a/src/gui/gui-buffer.c b/src/gui/gui-buffer.c
index 8e5c2ce13..c26727c51 100644
--- a/src/gui/gui-buffer.c
+++ b/src/gui/gui-buffer.c
@@ -2209,7 +2209,6 @@ gui_buffer_move_to_number (struct t_gui_buffer *buffer, int number)
{
struct t_gui_buffer *ptr_first_buffer, *ptr_last_buffer, *ptr_buffer;
struct t_gui_buffer *ptr_buffer_pos;
- char buf1_str[16], buf2_str[16], *argv[2] = { NULL, NULL };
/* if only one buffer then return */
if (gui_buffers == last_gui_buffer)
@@ -2243,8 +2242,6 @@ gui_buffer_move_to_number (struct t_gui_buffer *buffer, int number)
if ((ptr_first_buffer == gui_buffers) && (ptr_last_buffer == last_gui_buffer))
return;
- snprintf (buf2_str, sizeof (buf2_str) - 1, "%d", buffer->number);
-
/* remove buffer(s) from list */
if (ptr_first_buffer == gui_buffers)
{
@@ -2331,10 +2328,6 @@ gui_buffer_move_to_number (struct t_gui_buffer *buffer, int number)
ptr_buffer->number++;
}
- snprintf (buf1_str, sizeof (buf1_str) - 1, "%d", buffer->number);
- argv[0] = buf1_str;
- argv[1] = buf2_str;
-
hook_signal_send ("buffer_moved",
WEECHAT_HOOK_SIGNAL_POINTER, buffer);
}