From 13616729e689caeca86499566616b1d2579cbda4 Mon Sep 17 00:00:00 2001 From: nerdopolis Date: Tue, 5 Dec 2023 21:10:49 -0500 Subject: [PATCH] ply-terminal-emulator: cleanup dead code --- src/libply-splash-core/ply-terminal-emulator.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/libply-splash-core/ply-terminal-emulator.c b/src/libply-splash-core/ply-terminal-emulator.c index 47526224..eb323f38 100644 --- a/src/libply-splash-core/ply-terminal-emulator.c +++ b/src/libply-splash-core/ply-terminal-emulator.c @@ -110,8 +110,6 @@ struct _ply_terminal_emulator ply_rich_text_t *current_line; ply_rich_text_character_style_t current_style; - - uint32_t default_colors_forced : 1; }; typedef ply_terminal_emulator_break_string_t (*ply_terminal_emulator_dispatch_handler_t)(); @@ -159,8 +157,6 @@ ply_terminal_emulator_new (size_t maximum_line_count) terminal_emulator->current_style.underline_enabled = false; terminal_emulator->current_style.reverse_enabled = false; - terminal_emulator->default_colors_forced = false; - return terminal_emulator; } @@ -1221,12 +1217,6 @@ ply_terminal_emulator_parse_substring (ply_terminal_emulator_t *terminal_emulato if (terminal_emulator->break_action == PLY_TERMINAL_EMULATOR_BREAK_STRING_ACTION_RESET_CURSOR_COLUMN) terminal_emulator->cursor_column = 0; - if (terminal_emulator->default_colors_forced == true) { - terminal_emulator->default_colors_forced = false; - terminal_emulator->current_style.foreground_color = PLY_TERMINAL_COLOR_DEFAULT; - terminal_emulator->current_style.background_color = PLY_TERMINAL_COLOR_DEFAULT; - } - terminal_emulator->current_line = NULL; }