remove obsolete check, that caused Valgrind warning as well