Bladeren bron

Suppression de code mort

Rémi Synave 2 jaren geleden
bovenliggende
commit
a156455a3a
1 gewijzigde bestanden met toevoegingen van 0 en 1 verwijderingen
  1. 0 1
      StrengthLine/StrengthLine.cpp

+ 0 - 1
StrengthLine/StrengthLine.cpp

@@ -173,7 +173,6 @@ std::pair < QPoint *, QPoint * >StrengthLine::interpolateToEdge (int imgWidth, i
 
 float StrengthLine::ea_score(const StrengthLine *sl, double imgWidth, double imgHeight) const
 {
-  std::srand(static_cast<unsigned int>(std::time(nullptr)+std::rand()));
   std::pair < QPoint*, QPoint* > pointsSL1 = this->interpolateToEdge (imgWidth, imgHeight);
   std::pair < QPoint*, QPoint* > pointsSL2 = sl->interpolateToEdge (imgWidth, imgHeight);
   QPoint* p1SL1 = std::get < 0 > (pointsSL1);