Remove useless code (thin walls and gaps are detected by the same logic now, so no need for additional checks)