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
@@ -9,9 +9,8 @@
|
||||
#include <fairmq/Device.h>
|
||||
#include <fairmq/runDevice.h>
|
||||
|
||||
class QCDispatcher : public FairMQDevice
|
||||
struct QCDispatcher : fair::mq::Device
|
||||
{
|
||||
public:
|
||||
QCDispatcher()
|
||||
: fDoQC(false)
|
||||
{
|
||||
@@ -31,7 +30,6 @@ class QCDispatcher : public FairMQDevice
|
||||
});
|
||||
}
|
||||
|
||||
protected:
|
||||
bool HandleData(FairMQMessagePtr& msg, int)
|
||||
{
|
||||
if (fDoQC.load() == true) {
|
||||
|
@@ -12,13 +12,9 @@
|
||||
#include <thread> // this_thread::sleep_for
|
||||
#include <chrono>
|
||||
|
||||
class Sampler : public FairMQDevice
|
||||
struct Sampler : fair::mq::Device
|
||||
{
|
||||
public:
|
||||
Sampler() = default;
|
||||
|
||||
protected:
|
||||
virtual bool ConditionalRun()
|
||||
bool ConditionalRun() override
|
||||
{
|
||||
FairMQMessagePtr msg(NewMessage(1000));
|
||||
|
||||
|
@@ -11,12 +11,9 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
class Sink : public FairMQDevice
|
||||
struct Sink : fair::mq::Device
|
||||
{
|
||||
public:
|
||||
Sink() { OnData("data2", &Sink::HandleData); }
|
||||
|
||||
protected:
|
||||
bool HandleData(FairMQMessagePtr& /*msg*/, int /*index*/) { return true; }
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user