libutil: remove unused ref constructor

this one is dangerous anyway.

Change-Id: Id4fb777fff516cdb6a6e8e0b2fd7611418ae2e49
This commit is contained in:
eldritch horrors
2025-04-05 21:57:45 +02:00
parent c4b8b92904
commit aa358eac91
-7
View File
@@ -32,13 +32,6 @@ public:
throw std::invalid_argument("null pointer cast to ref");
}
explicit ref<T>(T * p)
: p(p)
{
if (!p)
throw std::invalid_argument("null pointer cast to ref");
}
T* operator ->() const
{
return &*p;