lib/upnp/ContentDirectoryService: remove unused fields

This commit is contained in:
Max Kellermann 2023-12-28 21:20:57 +01:00
parent d9fb152b95
commit b9a7a9981e
2 changed files with 3 additions and 5 deletions

View File

@ -19,17 +19,17 @@
#include <upnptools.h> #include <upnptools.h>
using std::string_view_literals::operator""sv;
ContentDirectoryService::ContentDirectoryService(const UPnPDevice &device, ContentDirectoryService::ContentDirectoryService(const UPnPDevice &device,
const UPnPService &service) noexcept const UPnPService &service) noexcept
:m_actionURL(uri_apply_base(service.controlURL, device.URLBase)), :m_actionURL(uri_apply_base(service.controlURL, device.URLBase)),
m_serviceType(service.serviceType), m_serviceType(service.serviceType),
m_deviceId(device.UDN), m_deviceId(device.UDN),
m_friendlyName(device.friendlyName), m_friendlyName(device.friendlyName),
m_manufacturer(device.manufacturer),
m_modelName(device.modelName),
m_rdreqcnt(200) m_rdreqcnt(200)
{ {
if (m_modelName == "MediaTomb") { if (device.modelName == "MediaTomb"sv) {
// Readdir by 200 entries is good for most, but MediaTomb likes // Readdir by 200 entries is good for most, but MediaTomb likes
// them really big. Actually 1000 is better but I don't dare // them really big. Actually 1000 is better but I don't dare
m_rdreqcnt = 500; m_rdreqcnt = 500;

View File

@ -34,8 +34,6 @@ class ContentDirectoryService {
std::string m_serviceType; std::string m_serviceType;
std::string m_deviceId; std::string m_deviceId;
std::string m_friendlyName; std::string m_friendlyName;
std::string m_manufacturer;
std::string m_modelName;
int m_rdreqcnt; // Slice size to use when reading int m_rdreqcnt; // Slice size to use when reading