lib/upnp/Device: remove UPnPService::clear()

This commit is contained in:
Max Kellermann 2020-03-13 17:56:27 +01:00
parent a2f5a63bbc
commit 569773cc75
2 changed files with 1 additions and 7 deletions

View File

@ -84,7 +84,7 @@ protected:
value = nullptr;
} else if (!strcmp(name, "service")) {
m_device.services.emplace_back(std::move(m_tservice));
m_tservice.clear();
m_tservice = {};
}
}

View File

@ -36,12 +36,6 @@ struct UPnPService {
// e.g. urn:schemas-upnp-org:service:ConnectionManager:1
std::string serviceType;
std::string controlURL; // e.g.: /upnp/control/cm
void clear()
{
serviceType.clear();
controlURL.clear();
}
};
/**