Remove unused parity function.

Fixes an unused function warning.
Fix format width warning.

This solution is already used elsewhere in the file.