From aa358eac9183fe0211c7fc1ea1175e3feb636b46 Mon Sep 17 00:00:00 2001 From: eldritch horrors Date: Sat, 5 Apr 2025 21:57:20 +0200 Subject: [PATCH] libutil: remove unused ref constructor this one is dangerous anyway. Change-Id: Id4fb777fff516cdb6a6e8e0b2fd7611418ae2e49 --- lix/libutil/ref.hh | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lix/libutil/ref.hh b/lix/libutil/ref.hh index 03aa64273..8ccad834b 100644 --- a/lix/libutil/ref.hh +++ b/lix/libutil/ref.hh @@ -32,13 +32,6 @@ public: throw std::invalid_argument("null pointer cast to ref"); } - explicit ref(T * p) - : p(p) - { - if (!p) - throw std::invalid_argument("null pointer cast to ref"); - } - T* operator ->() const { return &*p;