Removed unused function.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user