Remove unused window code