removing unused declarations