mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
LibCore: Remove leftover debug spam in CObject::remove_child()
This commit is contained in:
parent
df837562ad
commit
5614cdf308
Notes:
sideshowbarker
2024-07-19 12:00:38 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/5614cdf3087
@ -67,7 +67,6 @@ void CObject::add_child(CObject& object)
|
|||||||
void CObject::remove_child(CObject& object)
|
void CObject::remove_child(CObject& object)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < m_children.size(); ++i) {
|
for (int i = 0; i < m_children.size(); ++i) {
|
||||||
dbg() << i << "] " << m_children.at(i);
|
|
||||||
if (m_children.ptr_at(i).ptr() == &object) {
|
if (m_children.ptr_at(i).ptr() == &object) {
|
||||||
// NOTE: We protect the child so it survives the handling of ChildRemoved.
|
// NOTE: We protect the child so it survives the handling of ChildRemoved.
|
||||||
NonnullRefPtr<CObject> protector = object;
|
NonnullRefPtr<CObject> protector = object;
|
||||||
|
Loading…
Reference in New Issue
Block a user