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,16 +13,8 @@
namespace bpo = boost::program_options;
class Sampler : public FairMQDevice
struct Sampler : fair::mq::Device
{
public:
Sampler() = default;
protected:
std::string fText;
uint64_t fMaxIterations = 0;
uint64_t fNumIterations = 0;
void InitTask() override
{
// Get the fText and fMaxIterations values from the command line options (via fConfig)
@@ -57,6 +49,11 @@ class Sampler : public FairMQDevice
return true;
}
private:
std::string fText;
uint64_t fMaxIterations = 0;
uint64_t fNumIterations = 0;
};
void addCustomOptions(bpo::options_description& options)

View File

@@ -13,16 +13,14 @@
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
OnData("data", &Sink::HandleData);
}
protected:
void InitTask() override
{
// Get the fMaxIterations value from the command line options (via fConfig)