remove unused code from s3 policy signer