mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 01:08:11 +00:00
Kernel: Remove unused BlockTimeout::m_should_block
This was assigned but never read.
This commit is contained in:
parent
cfd9045891
commit
adbf472ca7
2 changed files with 1 additions and 4 deletions
|
@ -272,7 +272,6 @@ public:
|
||||||
Time m_start_time {};
|
Time m_start_time {};
|
||||||
clockid_t m_clock_id { CLOCK_MONOTONIC_COARSE };
|
clockid_t m_clock_id { CLOCK_MONOTONIC_COARSE };
|
||||||
bool m_infinite { false };
|
bool m_infinite { false };
|
||||||
bool m_should_block { false };
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class BlockerSet;
|
class BlockerSet;
|
||||||
|
|
|
@ -19,10 +19,8 @@ Thread::BlockTimeout::BlockTimeout(bool is_absolute, const Time* time, const Tim
|
||||||
{
|
{
|
||||||
if (m_infinite)
|
if (m_infinite)
|
||||||
return;
|
return;
|
||||||
if (*time > Time::zero()) {
|
if (*time > Time::zero())
|
||||||
m_time = *time;
|
m_time = *time;
|
||||||
m_should_block = true;
|
|
||||||
}
|
|
||||||
m_start_time = start_time ? *start_time : TimeManagement::the().current_time(clock_id);
|
m_start_time = start_time ? *start_time : TimeManagement::the().current_time(clock_id);
|
||||||
if (!is_absolute)
|
if (!is_absolute)
|
||||||
m_time += m_start_time;
|
m_time += m_start_time;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue