Skip to content

Commit 4e30927

Browse files
author
Daniel Kroening
committed
remove to_integer(const exprt &, ...)
This function has been marked as "will go away" since 2013. It has no known users.
1 parent f4dedec commit 4e30927

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

src/util/arith_tools.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,6 @@ Author: Daniel Kroening, [email protected]
1616

1717
#include <algorithm>
1818

19-
bool to_integer(const exprt &expr, mp_integer &int_value)
20-
{
21-
if(!expr.is_constant())
22-
return true;
23-
return to_integer(to_constant_expr(expr), int_value);
24-
}
25-
2619
bool to_integer(const constant_exprt &expr, mp_integer &int_value)
2720
{
2821
const irep_idt &value=expr.get_value();

src/util/arith_tools.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,6 @@ Author: Daniel Kroening, [email protected]
1919

2020
class typet;
2121

22-
// this one will go away
23-
// returns 'true' on error
24-
/// \deprecated: use the constant_exprt version instead
25-
DEPRECATED("Use the constant_exprt version instead")
26-
bool to_integer(const exprt &expr, mp_integer &int_value);
27-
2822
// returns 'true' on error
2923
bool to_integer(const constant_exprt &expr, mp_integer &int_value);
3024

0 commit comments

Comments
 (0)