aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p@janouch.name>2020-03-22 02:00:57 +0100
committerPřemysl Janouch <p@janouch.name>2020-03-22 02:00:57 +0100
commit07d59db5abe319e27542aff9031fcc2f6ca362d4 (patch)
tree33ecfe414dc8e36c89463a5f8c3560cc2d0a61dc
parent2909b017fb144ca1d31a5a7f740853d5befda5ed (diff)
downloadxK-07d59db5abe319e27542aff9031fcc2f6ca362d4.tar.gz
xK-07d59db5abe319e27542aff9031fcc2f6ca362d4.tar.xz
xK-07d59db5abe319e27542aff9031fcc2f6ca362d4.zip
degesch: clean up unused functions
-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[] =
{
"",