mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-01 15:14:06 +08:00
Dead code removal
This commit is contained in:
parent
e60a76d562
commit
a97762ae21
@ -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())
|
||||
{
|
||||
|
||||
@ -135,11 +135,6 @@ class UAVCAN_EXPORT Server : IAllocationRequestHandler
|
||||
}
|
||||
}
|
||||
|
||||
virtual void handleAllocationActivityDetection(const ReceivedDataStructure<Allocation>&)
|
||||
{
|
||||
// TODO: remove this method
|
||||
}
|
||||
|
||||
/*
|
||||
* Methods of INodeDiscoveryHandler
|
||||
*/
|
||||
|
||||
@ -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())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user