mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 17:10:23 +00:00
LibCore: Remove some dead code in wait_for_events
Since max_fd_added and max_fd are initialized to -1 and 0 respectively the former could never be greater than the latter.
This commit is contained in:
parent
71f6e5c942
commit
5338eba39a
Notes:
sideshowbarker
2024-07-17 20:58:35 +09:00
Author: https://github.com/nbvdkamp Commit: https://github.com/SerenityOS/serenity/commit/5338eba39a Pull-request: https://github.com/SerenityOS/serenity/pull/19827 Reviewed-by: https://github.com/gmta ✅
1 changed files with 0 additions and 2 deletions
|
@ -153,10 +153,8 @@ retry:
|
|||
max_fd = fd;
|
||||
};
|
||||
|
||||
int max_fd_added = -1;
|
||||
// The wake pipe informs us of POSIX signals as well as manual calls to wake()
|
||||
add_fd_to_set(thread_data.wake_pipe_fds[0], read_fds);
|
||||
max_fd = max(max_fd, max_fd_added);
|
||||
|
||||
for (auto& notifier : thread_data.notifiers) {
|
||||
if (notifier->type() == Notifier::Type::Read)
|
||||
|
|
Loading…
Reference in a new issue