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

@@ -13,15 +13,13 @@
namespace bpo = boost::program_options;
class Processor : public FairMQDevice
struct Processor : fair::mq::Device
{
public:
Processor()
{
OnData("data1", &Processor::HandleData);
}
protected:
bool HandleData(FairMQMessagePtr& msg, int)
{
LOG(info) << "Received data, processing...";

View File

@@ -13,17 +13,13 @@
namespace bpo = boost::program_options;
class Sampler : public FairMQDevice
struct Sampler : fair::mq::Device
{
public:
Sampler() = default;
void InitTask() override
{
fIterations = fConfig->GetValue<uint64_t>("iterations");
}
protected:
bool ConditionalRun() override
{
// NewSimpleMessage creates a copy of the data and takes care of its destruction (after the transfer takes place).

View File

@@ -13,9 +13,8 @@
namespace bpo = boost::program_options;
class Sink : public FairMQDevice
struct Sink : fair::mq::Device
{
public:
Sink()
{
OnData("data2", &Sink::HandleData);
@@ -26,7 +25,6 @@ class Sink : public FairMQDevice
fIterations = fConfig->GetValue<uint64_t>("iterations");
}
protected:
bool HandleData(FairMQMessagePtr& msg, int)
{
LOG(info) << "Received: \"" << std::string(static_cast<char*>(msg->GetData()), msg->GetSize()) << "\"";