Commit 7b44dea4 authored by Max Kellermann's avatar Max Kellermann

db/upnp/Device: remove unused UPnPService attributes

parent 18aea922
...@@ -66,10 +66,6 @@ protected: ...@@ -66,10 +66,6 @@ protected:
if (!current.compare("deviceType")) if (!current.compare("deviceType"))
m_device.deviceType = std::move(str); m_device.deviceType = std::move(str);
break; break;
case 'e':
if (!current.compare("eventSubURL"))
m_tservice.eventSubURL = std::move(str);
break;
case 'f': case 'f':
if (!current.compare("friendlyName")) if (!current.compare("friendlyName"))
m_device.friendlyName = std::move(str); m_device.friendlyName = std::move(str);
...@@ -83,11 +79,6 @@ protected: ...@@ -83,11 +79,6 @@ protected:
case 's': case 's':
if (!current.compare("serviceType")) if (!current.compare("serviceType"))
m_tservice.serviceType = std::move(str); m_tservice.serviceType = std::move(str);
else if (!current.compare("serviceId"))
m_tservice.serviceId = std::move(str);
case 'S':
if (!current.compare("SCPDURL"))
m_tservice.SCPDURL = std::move(str);
break; break;
case 'U': case 'U':
if (!current.compare("UDN")) if (!current.compare("UDN"))
......
...@@ -37,19 +37,12 @@ class Error; ...@@ -37,19 +37,12 @@ class Error;
struct UPnPService { struct UPnPService {
// e.g. urn:schemas-upnp-org:service:ConnectionManager:1 // e.g. urn:schemas-upnp-org:service:ConnectionManager:1
std::string serviceType; std::string serviceType;
// Unique Id inside device: e.g here THE ConnectionManager
std::string serviceId; // e.g. urn:upnp-org:serviceId:ConnectionManager
std::string SCPDURL; // Service description URL. e.g.: cm.xml
std::string controlURL; // e.g.: /upnp/control/cm std::string controlURL; // e.g.: /upnp/control/cm
std::string eventSubURL; // e.g.: /upnp/event/cm
void clear() void clear()
{ {
serviceType.clear(); serviceType.clear();
serviceId.clear();
SCPDURL.clear();
controlURL.clear(); controlURL.clear();
eventSubURL.clear();
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment