diff options
author | Xavier G <xavier.github@kindwolf.org> | 2016-05-13 01:39:14 +0200 |
---|---|---|
committer | Xavier G <xavier.github@kindwolf.org> | 2016-05-13 01:39:14 +0200 |
commit | 5c74a3bb88db0fa32c459f8494e9f5a62a821baa (patch) | |
tree | ed349cfa4629686ab3a5e54d6aab556352c70faa /src/fe-common/core | |
parent | 5538578820550c1a62dc4d0e6451332229eeee75 (diff) | |
download | irssi-5c74a3bb88db0fa32c459f8494e9f5a62a821baa.zip |
Move advance() from fe-common/core to core.
Diffstat (limited to 'src/fe-common/core')
-rw-r--r-- | src/fe-common/core/formats.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/fe-common/core/formats.c b/src/fe-common/core/formats.c index ccf48394..7daecfcf 100644 --- a/src/fe-common/core/formats.c +++ b/src/fe-common/core/formats.c @@ -420,22 +420,6 @@ void format_create_dest_tag(TEXT_DEST_REC *dest, void *server, window_find_closest(server, target, level); } -static int advance (char const **str, gboolean utf8) -{ - if (utf8) { - gunichar c; - - c = g_utf8_get_char(*str); - *str = g_utf8_next_char(*str); - - return unichar_isprint(c) ? mk_wcwidth(c) : 1; - } else { - *str += 1; - - return 1; - } -} - /* Return length of text part in string (ie. without % codes) */ int format_get_length(const char *str) { |