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,12 +13,8 @@
namespace bpo = boost::program_options;
class Sampler1 : public FairMQDevice
struct Sampler1 : fair::mq::Device
{
public:
Sampler1() = default;
protected:
void InitTask() override
{
fMaxIterations = fConfig->GetProperty<uint64_t>("max-iterations");
@@ -68,6 +64,7 @@ class Sampler1 : public FairMQDevice
LOG(info) << "Acknowledged " << numAcks << " messages";
}
private:
std::thread fAckListener;
uint64_t fMaxIterations = 0;
uint64_t fNumIterations = 0;

View File

@@ -13,12 +13,8 @@
namespace bpo = boost::program_options;
class Sampler2 : public FairMQDevice
struct Sampler2 : fair::mq::Device
{
public:
Sampler2() = default;
protected:
void InitTask() override
{
fMaxIterations = fConfig->GetProperty<uint64_t>("max-iterations");
@@ -42,7 +38,6 @@ class Sampler2 : public FairMQDevice
return true;
}
private:
uint64_t fMaxIterations = 0;
uint64_t fNumIterations = 0;

View File

@@ -11,9 +11,8 @@
namespace bpo = boost::program_options;
class Sink : public FairMQDevice
struct Sink : fair::mq::Device
{
public:
Sink()
{
// register a handler for data arriving on "data" channel
@@ -21,7 +20,6 @@ class Sink : public FairMQDevice
OnData("data2", &Sink::HandleData2);
}
protected:
void InitTask() override
{
fMaxIterations = fConfig->GetProperty<uint64_t>("max-iterations");