Remove unused assert

assert is not used here anymore.