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
@@ -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;
|
||||
|
@@ -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;
|
||||
|
@@ -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");
|
||||
|
Reference in New Issue
Block a user