remove useless argument in PutPolicy.prototype.getFlags