Parcourir la source

Correction bug - lancement d'une exception alors qu'il n'y avait pas de raison

Rémi Synave il y a 9 mois
Parent
commit
e0c67e0dd5
1 fichiers modifiés avec 0 ajouts et 3 suppressions
  1. 0 3
      StrengthLine/StrengthLine.cpp

+ 0 - 3
StrengthLine/StrengthLine.cpp

@@ -30,9 +30,6 @@
 
 StrengthLine::StrengthLine (double ax, double ay, double bx, double by)
 {
-  if (p1 == NULL || p2 == NULL)
-    throw std::
-      invalid_argument ("Points defining a strength line can't be NULL.");
   if (ax == bx && ay ==  by)
     throw std::
       invalid_argument ("Points defining a strength line can't be equals.");