From 1fca16737dbf19ca3e7c910d51db5f7ac0b905e8 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 4 Jan 2024 20:49:26 +0100 Subject: [PATCH] lib/upnp/Device: remove unnecessary ctors/dtors --- src/lib/upnp/Device.cxx | 3 --- src/lib/upnp/Device.hxx | 7 ------- 2 files changed, 10 deletions(-) diff --git a/src/lib/upnp/Device.cxx b/src/lib/upnp/Device.cxx index 266bcd29c..89dac695f 100644 --- a/src/lib/upnp/Device.cxx +++ b/src/lib/upnp/Device.cxx @@ -7,9 +7,6 @@ #include -/* this destructor exists here just so it won't get inlined */ -UPnPDevice::~UPnPDevice() noexcept = default; - /** * An XML parser which constructs an UPnP device object from the * device descriptor. diff --git a/src/lib/upnp/Device.hxx b/src/lib/upnp/Device.hxx index 2098515f0..6c8e896a9 100644 --- a/src/lib/upnp/Device.hxx +++ b/src/lib/upnp/Device.hxx @@ -45,13 +45,6 @@ public: // Services provided by this device. std::vector services; - UPnPDevice() = default; - UPnPDevice(const UPnPDevice &) = delete; - UPnPDevice(UPnPDevice &&) = default; - UPnPDevice &operator=(UPnPDevice &&) = default; - - ~UPnPDevice() noexcept; - /** Build device from xml description downloaded from discovery * @param url where the description came from * @param description the xml device description