Remove unused declarations.