Remove unused variables in ConsensusBased and UnanimousBased

This commit is contained in:
John Lin 2018-09-21 13:56:36 +08:00 committed by Rob Winch
parent 5d18bb68ed
commit 69b71ee0ed
2 changed files with 0 additions and 6 deletions

View File

@ -68,7 +68,6 @@ public class ConsensusBased extends AbstractAccessDecisionManager {
Collection<ConfigAttribute> configAttributes) throws AccessDeniedException {
int grant = 0;
int deny = 0;
int abstain = 0;
for (AccessDecisionVoter voter : getDecisionVoters()) {
int result = voter.vote(authentication, object, configAttributes);
@ -89,8 +88,6 @@ public class ConsensusBased extends AbstractAccessDecisionManager {
break;
default:
abstain++;
break;
}
}

View File

@ -64,7 +64,6 @@ public class UnanimousBased extends AbstractAccessDecisionManager {
Collection<ConfigAttribute> attributes) throws AccessDeniedException {
int grant = 0;
int abstain = 0;
List<ConfigAttribute> singleAttributeList = new ArrayList<>(1);
singleAttributeList.add(null);
@ -91,8 +90,6 @@ public class UnanimousBased extends AbstractAccessDecisionManager {
"Access is denied"));
default:
abstain++;
break;
}
}