Remove unused isHex function.