From 4f351f625f2960d36b41a9f8a23c7bea0b98c115 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Fri, 23 May 2025 15:47:02 +0200 Subject: [PATCH] SharedObject: delete unused methods None of the derived classes use them, none shall have to explicitly delete them. --- lib/base/shared-object.hpp | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/lib/base/shared-object.hpp b/lib/base/shared-object.hpp index 58636dccb..396969db6 100644 --- a/lib/base/shared-object.hpp +++ b/lib/base/shared-object.hpp @@ -31,23 +31,8 @@ protected: { } - inline SharedObject(const SharedObject&) : SharedObject() - { - } - - inline SharedObject(SharedObject&&) : SharedObject() - { - } - - inline SharedObject& operator=(const SharedObject&) - { - return *this; - } - - inline SharedObject& operator=(SharedObject&&) - { - return *this; - } + SharedObject(const SharedObject&) = delete; + SharedObject& operator=(const SharedObject&) = delete; inline virtual ~SharedObject() = default;