Remove some useless enum_cast<> (since some enum types have been merged).

This commit is contained in:
Sylvain Pion
2008-03-20 16:15:04 +00:00
parent e1c7608543
commit edab7e2433
3 changed files with 61 additions and 73 deletions
@@ -3703,7 +3703,7 @@ namespace CartesianKernelFunctors {
ot = orientation(t.vertex(0), t.vertex(1), t.vertex(2));
if (o1 == ot && o2 == ot && o3 == ot) // ot cannot be COLLINEAR
return enum_cast<Oriented_side>(ot);
return ot;
return
(o1 == COLLINEAR
&& collinear_are_ordered_along_line(t.vertex(0), p, t.vertex(1))) ||
@@ -3712,7 +3712,8 @@ namespace CartesianKernelFunctors {
(o3 == COLLINEAR
&& collinear_are_ordered_along_line(t.vertex(2), p, t.vertex(3)))
? result_type(ON_ORIENTED_BOUNDARY)
: enum_cast<Oriented_side>(opposite(ot)); }
: opposite(ot);
}
};
template <typename K>