mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-15 23:09:05 +00:00
AK+Kernel: Remove one_ref_left() footgun
This mechanism was unsafe to use in any multithreaded context, since the hook function was invoked on a raw pointer *after* decrementing the local ref count. Since we don't use it for anything anymore, let's just get rid of it.
This commit is contained in:
parent
08e927f084
commit
a4b4b358ff
Notes:
sideshowbarker
2024-07-17 21:12:59 +09:00
Author: https://github.com/awesomekling
Commit: a4b4b358ff
4 changed files with 0 additions and 15 deletions
|
@ -77,10 +77,6 @@ public:
|
|||
delete that;
|
||||
return true;
|
||||
}
|
||||
if (new_ref_count == 1) {
|
||||
if constexpr (requires { that->one_ref_left(); })
|
||||
that->one_ref_left();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue