mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-05 21:42:47 -05:00
Remove TermWin's is_utf8 method.
All implementations of it work by checking the line_codepage field in the ucsdata structure that the terminal itself already has a pointer to. Therefore, it's a totally unnecessary query function: the terminal can check the same thing directly by inspecting that structure! (In fact, it already _does_ do that, for the purpose of actually deciding how to decode terminal output data. It only uses this query function at all for the auxiliary purpose of inventing useful tty modes to pass to the backend.)
This commit is contained in:
@ -99,7 +99,6 @@ static void fuzz_palette_reset(TermWin *tw) {}
|
||||
static void fuzz_get_pos(TermWin *tw, int *x, int *y) { *x = *y = 0; }
|
||||
static void fuzz_get_pixels(TermWin *tw, int *x, int *y) { *x = *y = 0; }
|
||||
static const char *fuzz_get_title(TermWin *tw, bool icon) { return "moo"; }
|
||||
static bool fuzz_is_utf8(TermWin *tw) { return true; }
|
||||
|
||||
static const TermWinVtable fuzz_termwin_vt = {
|
||||
.setup_draw_ctx = fuzz_setup_draw_ctx,
|
||||
@ -129,7 +128,6 @@ static const TermWinVtable fuzz_termwin_vt = {
|
||||
.get_pos = fuzz_get_pos,
|
||||
.get_pixels = fuzz_get_pixels,
|
||||
.get_title = fuzz_get_title,
|
||||
.is_utf8 = fuzz_is_utf8,
|
||||
};
|
||||
|
||||
void ldisc_send(Ldisc *ldisc, const void *buf, int len, bool interactive) {}
|
||||
|
Reference in New Issue
Block a user