degesch: clean up unused functions

This commit is contained in:
Přemysl Eric Janouch 2020-03-22 02:00:57 +01:00
parent 2909b017fb
commit 07d59db5ab
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 0 additions and 32 deletions

View File

@ -3025,18 +3025,6 @@ irc_to_utf8 (const char *text)
return str_steal (&s);
}
// This function is used to output debugging IRC traffic to the terminal.
// It's far from ideal, as any non-UTF-8 text degrades the entire line to
// ISO Latin 1. But it should work good enough most of the time.
static char *
irc_to_term (struct app_context *ctx, const char *text)
{
char *utf8 = irc_to_utf8 (text);
char *term = iconv_xstrdup (ctx->term_from_utf8, utf8, -1, NULL);
free (utf8);
return term;
}
// --- Output formatter --------------------------------------------------------
// This complicated piece of code makes attributed text formatting simple.
@ -13153,26 +13141,6 @@ app_editline_init (struct input_el *self)
// --- Configuration loading ---------------------------------------------------
static struct config_item *
load_configuration_file (const char *filename, struct error **e)
{
struct config_item *root = NULL;
struct str data = str_make ();
if (!read_file (filename, &data, e))
goto end;
struct error *error = NULL;
if (!(root = config_item_parse (data.str, data.len, false, &error)))
{
error_set (e, "Parsing `%s' failed: %s", filename, error->message);
error_free (error);
}
end:
str_free (&data);
return root;
}
static const char *g_first_time_help[] =
{
"",