Dead code removal

This commit is contained in:
Pavel Kirienko 2015-05-26 20:13:13 +03:00
parent e60a76d562
commit a97762ae21
3 changed files with 0 additions and 17 deletions

View File

@ -35,11 +35,6 @@ public:
*/
virtual void handleAllocationRequest(const UniqueID& unique_id, NodeID preferred_node_id) = 0;
/**
* This method will be invoked when there's an Allocation message detected on the bus.
*/
virtual void handleAllocationActivityDetection(const ReceivedDataStructure<Allocation>& msg) = 0;
virtual ~IAllocationRequestHandler() { }
};
@ -132,7 +127,6 @@ class AllocationRequestManager
void handleAllocation(const ReceivedDataStructure<Allocation>& msg)
{
trace(TraceAllocationActivity, msg.getSrcNodeID().get());
handler_.handleAllocationActivityDetection(msg);
if (!msg.isAnonymousTransfer())
{

View File

@ -135,11 +135,6 @@ class UAVCAN_EXPORT Server : IAllocationRequestHandler
}
}
virtual void handleAllocationActivityDetection(const ReceivedDataStructure<Allocation>&)
{
// TODO: remove this method
}
/*
* Methods of INodeDiscoveryHandler
*/

View File

@ -30,12 +30,6 @@ public:
return can_followup;
}
virtual void handleAllocationActivityDetection(
const uavcan::ReceivedDataStructure<uavcan::protocol::dynamic_node_id::Allocation>& msg)
{
std::cout << "ALLOCATION ACTIVITY\n" << msg << std::endl;
}
bool matchAndPopLastRequest(const UniqueID& unique_id, uavcan::NodeID preferred_node_id)
{
if (requests_.empty())