1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 21:58:12 +00:00

Kernel: Remove make_weak_ptr()

New users of WeakPtr in the kernel should use try_make_weak_ptr instead
This commit is contained in:
Idan Horowitz 2022-02-13 21:34:11 +02:00 committed by Andreas Kling
parent c8ab7bde3b
commit b32cf33a23
2 changed files with 6 additions and 7 deletions

View file

@ -237,12 +237,6 @@ ErrorOr<WeakPtr<T>> try_make_weak_ptr_if_nonnull(T const* ptr)
return WeakPtr<T> {};
}
template<typename T>
WeakPtr<T> make_weak_ptr_if_nonnull(T const* ptr)
{
return MUST(try_make_weak_ptr_if_nonnull(ptr));
}
}
using AK::WeakPtr;