Remove useless code

This commit is contained in:
Alexey Rybalchenko
2021-05-28 12:44:27 +02:00
committed by Dennis Klein
parent 882edbbdb8
commit 3c4158addb
38 changed files with 51 additions and 158 deletions

View File

@@ -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) {

View File

@@ -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));

View File

@@ -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; }
};