* make_op.h, eoLogger.cpp: disabled not used variables. should I remove them ?

This commit is contained in:
Caner Candan 2012-06-14 15:30:41 +02:00
commit a183a1c6d1
2 changed files with 5 additions and 6 deletions

View file

@ -115,11 +115,11 @@ eoGenOp<EOT> & do_make_op(eoParser& _parser, eoState& _state, eoInit<EOT>& _init
throw std::runtime_error("Invalid uRate");
// minimum check
bool bCross = true;
// bool bCross = true; // not used ?
if (onePointRateParam.value()+twoPointsRateParam.value()+uRateParam.value()==0)
{
std::cerr << "Warning: no crossover" << std::endl;
bCross = false;
// bCross = false;
}
// Create the CombinedQuadOp
@ -162,11 +162,11 @@ eoGenOp<EOT> & do_make_op(eoParser& _parser, eoState& _state, eoInit<EOT>& _init
throw std::runtime_error("Invalid oneBitRate");
// minimum check
bool bMut = true;
// bool bMut = true; // not used ?
if (bitFlipRateParam.value()+oneBitRateParam.value()==0)
{
std::cerr << "Warning: no mutation" << std::endl;
bMut = false;
// bMut = false;
}
// Create the CombinedMonOp

View file

@ -194,8 +194,7 @@ int eoLogger::outbuf::overflow(int_type c)
{
if (_fd >= 0 && c != EOF)
{
size_t num;
num = ::write(_fd, &c, 1);
::write(_fd, &c, 1);
}
}
return c;