devosoft/avida

Remove unnecessary null pointer checks

elfring opened this issue · 2 comments

How do you think about to improve the affected source code?

I agree completely with the removal of the null checks. At the time I originally wrote this code, I hadn't realized that it was safe to delete null pointers (or rather, that delete always performs this check).

http://stackoverflow.com/questions/4190703/is-it-safe-to-delete-a-null-pointer