From 9d05dcf175ac6a26a1a263ea490df174f78ffc62 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sat, 21 Jun 2008 11:49:11 +0200 Subject: Remove infobar --- src/plugins/scripts/script-api.c | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'src/plugins/scripts/script-api.c') diff --git a/src/plugins/scripts/script-api.c b/src/plugins/scripts/script-api.c index a00f48d66..6c2d5a743 100644 --- a/src/plugins/scripts/script-api.c +++ b/src/plugins/scripts/script-api.c @@ -535,31 +535,6 @@ script_api_printf_y (struct t_weechat_plugin *weechat_plugin, free (buf2); } -/* - * script_api_infobar_printf: print a message in infobar - */ - -void -script_api_infobar_printf (struct t_weechat_plugin *weechat_plugin, - struct t_plugin_script *script, - int delay, const char *color_name, - const char *format, ...) -{ - va_list argptr; - char buf[1024]; - char *buf2; - - va_start (argptr, format); - vsnprintf (buf, sizeof (buf) - 1, format, argptr); - va_end (argptr); - - buf2 = (script->charset && script->charset[0]) ? - weechat_iconv_to_internal (script->charset, buf) : NULL; - weechat_infobar_printf (delay, color_name, "%s", (buf2) ? buf2 : buf); - if (buf2) - free (buf2); -} - /* * script_api_log_printf: add a message in WeeChat log file */ -- cgit v1.2.3