Skip to content

Commit

Permalink
Keep only Is_zero
Browse files Browse the repository at this point in the history
  • Loading branch information
afabri committed Feb 22, 2024
1 parent 60328a7 commit 290f797
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions Number_types/include/CGAL/CORE_Expr.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,22 +123,6 @@ template <> class Algebraic_structure_traits< CORE::Expr >
}
};

class Is_one
: public CGAL::cpp98::unary_function< Type, bool > {
public:
bool operator()( const Type& x ) const {
double inf, sup;
x.doubleInterval(inf,sup);
if((inf > 1) || (sup < 1)){
return false;
}
if(inf == sup){
return true;
}
return x.cmp(Type::getOne()) == 0;
}
};

};

template <> class Real_embeddable_traits< CORE::Expr >
Expand Down

0 comments on commit 290f797

Please sign in to comment.