remove some unused collision detection code