From f14b294dccca8c77b9f0aedb0fafe9663c67e71b Mon Sep 17 00:00:00 2001 From: Craig Barnes Date: Tue, 25 May 2021 21:45:55 +0100 Subject: vt: remove action_utf8_print(term, 0) calls from UTF-8 state handlers These calls appear to be left over from a previous refactoring of the code. Calling this function with `wc == 0` is a no-op. --- vt.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/vt.c b/vt.c index daa634d1..67ec547a 100644 --- a/vt.c +++ b/vt.c @@ -1059,7 +1059,7 @@ state_utf8_21_switch(struct terminal *term, uint8_t data) switch (data) { /* exit current enter new state */ case 0x80 ... 0xbf: action_utf8_22(term, data); return STATE_GROUND; - default: action_utf8_print(term, 0); return STATE_GROUND; + default: return STATE_GROUND; } } @@ -1069,7 +1069,7 @@ state_utf8_31_switch(struct terminal *term, uint8_t data) switch (data) { /* exit current enter new state */ case 0x80 ... 0xbf: action_utf8_32(term, data); return STATE_UTF8_32; - default: action_utf8_print(term, 0); return STATE_GROUND; + default: return STATE_GROUND; } } @@ -1079,7 +1079,7 @@ state_utf8_32_switch(struct terminal *term, uint8_t data) switch (data) { /* exit current enter new state */ case 0x80 ... 0xbf: action_utf8_33(term, data); return STATE_GROUND; - default: action_utf8_print(term, 0); return STATE_GROUND; + default: return STATE_GROUND; } } @@ -1089,7 +1089,7 @@ state_utf8_41_switch(struct terminal *term, uint8_t data) switch (data) { /* exit current enter new state */ case 0x80 ... 0xbf: action_utf8_42(term, data); return STATE_UTF8_42; - default: action_utf8_print(term, 0); return STATE_GROUND; + default: return STATE_GROUND; } } @@ -1099,7 +1099,7 @@ state_utf8_42_switch(struct terminal *term, uint8_t data) switch (data) { /* exit current enter new state */ case 0x80 ... 0xbf: action_utf8_43(term, data); return STATE_UTF8_43; - default: action_utf8_print(term, 0); return STATE_GROUND; + default: return STATE_GROUND; } } @@ -1109,7 +1109,7 @@ state_utf8_43_switch(struct terminal *term, uint8_t data) switch (data) { /* exit current enter new state */ case 0x80 ... 0xbf: action_utf8_44(term, data); return STATE_GROUND; - default: action_utf8_print(term, 0); return STATE_GROUND; + default: return STATE_GROUND; } } -- cgit v1.3