Quellcode durchsuchen

Suppression de code mort

Rémi Synave vor 2 Jahren
Ursprung
Commit
a156455a3a
1 geänderte Dateien mit 0 neuen und 1 gelöschten Zeilen
  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);