diff options
author | Přemysl Janouch <p@janouch.name> | 2020-03-22 02:00:57 +0100 |
---|---|---|
committer | Přemysl Janouch <p@janouch.name> | 2020-03-22 02:00:57 +0100 |
commit | 07d59db5abe319e27542aff9031fcc2f6ca362d4 (patch) | |
tree | 33ecfe414dc8e36c89463a5f8c3560cc2d0a61dc /degesch.c | |
parent | 2909b017fb144ca1d31a5a7f740853d5befda5ed (diff) | |
download | xK-07d59db5abe319e27542aff9031fcc2f6ca362d4.tar.gz xK-07d59db5abe319e27542aff9031fcc2f6ca362d4.tar.xz xK-07d59db5abe319e27542aff9031fcc2f6ca362d4.zip |
degesch: clean up unused functions
Diffstat (limited to 'degesch.c')
-rw-r--r-- | degesch.c | 32 |
1 files changed, 0 insertions, 32 deletions
@@ -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[] = { "", |