aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--degesch.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/degesch.c b/degesch.c
index 66a626a..9d31b5c 100644
--- a/degesch.c
+++ b/degesch.c
@@ -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[] =
{
"",