Removed unused function addDoor