I removed ncurses header dependencies, removed unused code

This commit is contained in:
James Booth
2015-06-15 17:11:11 +01:00
parent a780168566
commit 732533ee5a
8 changed files with 6 additions and 52 deletions

View File

@@ -253,18 +253,6 @@ utf8_display_len(const char * const str)
return len;
}
gboolean
utf8_is_printable(const wint_t ch)
{
char bytes[MB_CUR_MAX+1];
size_t utf_len = wcrtomb(bytes, ch, NULL);
bytes[utf_len] = '\0';
gunichar unichar = g_utf8_get_char(bytes);
return g_unichar_isprint(unichar) && (ch != KEY_MOUSE);
}
char *
prof_getline(FILE *stream)
{