db/upnp: remove unused method setMaxContentLength()

This commit is contained in:
Max Kellermann 2014-01-10 23:04:50 +01:00
parent 48097745f6
commit e9ba5fcaf3
2 changed files with 1 additions and 10 deletions

View File

@ -51,7 +51,7 @@ LibUPnP::LibUPnP()
return; return;
} }
setMaxContentLength(2000*1024); UpnpSetMaxContentLength(2000*1024);
code = UpnpRegisterClient(o_callback, (void *)this, &m_clh); code = UpnpRegisterClient(o_callback, (void *)this, &m_clh);
if (code != UPNP_E_SUCCESS) { if (code != UPNP_E_SUCCESS) {
@ -65,11 +65,6 @@ LibUPnP::LibUPnP()
ixmlRelaxParser(1); ixmlRelaxParser(1);
} }
void LibUPnP::setMaxContentLength(int bytes)
{
UpnpSetMaxContentLength(bytes);
}
void void
LibUPnP::registerHandler(Upnp_EventType et, Upnp_FunPtr handler, void *cookie) LibUPnP::registerHandler(Upnp_EventType et, Upnp_FunPtr handler, void *cookie)
{ {

View File

@ -56,10 +56,6 @@ public:
/** Retrieve the singleton LibUPnP object */ /** Retrieve the singleton LibUPnP object */
static LibUPnP *getLibUPnP(Error &error); static LibUPnP *getLibUPnP(Error &error);
/** Set max library buffer size for reading content from servers.
* The default is 200k and should be ok */
void setMaxContentLength(int bytes);
/** Check state after initialization */ /** Check state after initialization */
bool ok() const bool ok() const
{ {