Removed unused function.

This commit is contained in:
hiker
2016-02-05 16:15:58 +11:00
parent 89979a46f5
commit af6ecfec3a
2 changed files with 0 additions and 17 deletions

View File

@@ -520,22 +520,6 @@ void ProtocolManager::asynchronousUpdate()
m_requests.unlock();
} // asynchronousUpdate
// ----------------------------------------------------------------------------
/** \brief Get the id of a protocol.
* \param protocol : A pointer to the protocol you seek the id.
* \return The id of the protocol pointed by the protocol parameter.
*/
uint32_t ProtocolManager::getProtocolID(Protocol* protocol)
{
// FIXME: Does this need to be locked?
for (unsigned int i = 0; i < m_protocols.getData().size(); i++)
{
if (m_protocols.getData()[i] == protocol)
return m_protocols.getData()[i]->getId();
}
return 0;
} // getProtocolID
// ----------------------------------------------------------------------------
/** \brief Get a protocol using its id.
* \param id : Unique ID of the seek protocol.

View File

@@ -177,7 +177,6 @@ public:
virtual void terminateProtocol(Protocol *protocol);
virtual void update();
virtual void asynchronousUpdate();
virtual uint32_t getProtocolID(Protocol* protocol);
virtual Protocol* getProtocol(uint32_t id);
virtual Protocol* getProtocol(ProtocolType type);
}; // class ProtocolManager