Remove unused assertion code