From 00913de02f8f17bfc4d2ecd3115bcf7c70bede1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 14 Mar 2020 17:44:23 +0100 Subject: irc: remove unused variable "modes" from function irc_bar_item_buffer_name_content --- src/plugins/irc/irc-bar-item.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/plugins') diff --git a/src/plugins/irc/irc-bar-item.c b/src/plugins/irc/irc-bar-item.c index 06ef0c89d..8b2cd2004 100644 --- a/src/plugins/irc/irc-bar-item.c +++ b/src/plugins/irc/irc-bar-item.c @@ -114,7 +114,7 @@ irc_bar_item_buffer_plugin (const void *pointer, void *data, char * irc_bar_item_buffer_name_content (struct t_gui_buffer *buffer, int short_name) { - char buf[512], buf_name[256], modes[128]; + char buf[512], buf_name[256]; const char *name, *localvar_type; int part_from_channel, display_server, is_channel; struct t_irc_server *server; @@ -124,7 +124,6 @@ irc_bar_item_buffer_name_content (struct t_gui_buffer *buffer, int short_name) return NULL; buf_name[0] = '\0'; - modes[0] = '\0'; display_server = (weechat_config_integer (irc_config_look_item_display_server) == IRC_CONFIG_LOOK_ITEM_DISPLAY_SERVER_NAME); @@ -187,10 +186,10 @@ irc_bar_item_buffer_name_content (struct t_gui_buffer *buffer, int short_name) } } - snprintf (buf, sizeof (buf), "%s%s%s", + snprintf (buf, sizeof (buf), + "%s%s", (server && server->ssl_connected) ? IRC_COLOR_STATUS_NAME_SSL : IRC_COLOR_STATUS_NAME, - buf_name, - modes); + buf_name); return strdup (buf); } -- cgit v1.2.3