libc: Remove unused variables from Libc::Kernel.

The _dispatch_pending_io_signals and _original_suspended_callback member
variables are not used anywhere in the code. This prompts clang to produce
a warning message about it. Remove both variables to fix it.

Issue #3985
This commit is contained in:
Piotr Tworek 2021-01-12 00:33:54 +01:00 committed by Norman Feske
parent 90b20b4daf
commit 384cf14bee

View File

@ -204,7 +204,6 @@ struct Libc::Kernel final : Vfs::Io_response_handler,
jmp_buf _kernel_context;
jmp_buf _user_context;
bool _valid_user_context = false;
bool _dispatch_pending_io_signals = false;
/* io_progress_handler marker */
bool _io_progressed { false };
@ -219,8 +218,6 @@ struct Libc::Kernel final : Vfs::Io_response_handler,
_myself.alloc_secondary_stack(_myself.name().string(),
_user_stack_size()) };
void (*_original_suspended_callback)() = nullptr;
enum State { KERNEL, USER };
State _state = KERNEL;