3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-28 03:15:50 +00:00

Remove unnecessary null pointer checks

This commit is contained in:
Lev Nachmanson 2019-03-22 09:43:34 -07:00
parent eae4fd6afd
commit 6e5d0b7594
5 changed files with 8 additions and 14 deletions

View file

@ -86,9 +86,7 @@ template <typename T, typename X> int lp_solver<T, X>::get_column_index_by_name(
template <typename T, typename X> lp_solver<T, X>::~lp_solver(){
if (m_A != nullptr) {
delete m_A;
}
delete m_A;
for (auto t : m_map_from_var_index_to_column_info) {
delete t.second;
}