mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
Remove useless code
This commit is contained in:
committed by
Dennis Klein
parent
882edbbdb8
commit
3c4158addb
@@ -29,16 +29,13 @@ struct TFBuffer
|
||||
chrono::steady_clock::time_point end;
|
||||
};
|
||||
|
||||
class Receiver : public FairMQDevice
|
||||
struct Receiver : fair::mq::Device
|
||||
{
|
||||
public:
|
||||
Receiver()
|
||||
{
|
||||
OnData("data", &Receiver::HandleData);
|
||||
}
|
||||
|
||||
~Receiver() = default;
|
||||
|
||||
void InitTask() override
|
||||
{
|
||||
fNumSenders = GetConfig()->GetValue<int>("num-senders");
|
||||
@@ -46,7 +43,6 @@ class Receiver : public FairMQDevice
|
||||
fMaxTimeframes = GetConfig()->GetValue<int>("max-timeframes");
|
||||
}
|
||||
|
||||
protected:
|
||||
bool HandleData(FairMQParts& parts, int /* index */)
|
||||
{
|
||||
Header& h = *(static_cast<Header*>(parts.At(0)->GetData()));
|
||||
@@ -93,6 +89,7 @@ class Receiver : public FairMQDevice
|
||||
}
|
||||
}
|
||||
|
||||
private:
|
||||
unordered_map<uint16_t, TFBuffer> fBuffer;
|
||||
unordered_set<uint16_t> fDiscardedSet;
|
||||
|
||||
|
Reference in New Issue
Block a user