summaryrefslogtreecommitdiffstats
path: root/feature-server-pool
diff options
context:
space:
mode:
authorTaka Cho <takamune.cho@att.com>2020-06-22 09:52:30 -0400
committerTaka Cho <takamune.cho@att.com>2020-06-22 09:54:20 -0400
commitc951a18cd53cbd1d2c26a78b29b941c64150839f (patch)
treeaeab913a703b4d5f56e823ee1642ab9a4dbcc2e7 /feature-server-pool
parentefe980552cb996b1a0ba5b51a6a0beea322b5f82 (diff)
removed unused methods parameter
Unused parameters are misleading. Whatever the values passed to such parameters, the behavior will be the same. Issue-ID: POLICY-2616 Change-Id: I9a595dca81ce061846fa53adf8086130ffd31a74 Signed-off-by: Taka Cho <takamune.cho@att.com>
Diffstat (limited to 'feature-server-pool')
-rw-r--r--feature-server-pool/src/main/java/org/onap/policy/drools/serverpool/Bucket.java2
-rw-r--r--feature-server-pool/src/main/java/org/onap/policy/drools/serverpool/TargetLock.java3
2 files changed, 2 insertions, 3 deletions
diff --git a/feature-server-pool/src/main/java/org/onap/policy/drools/serverpool/Bucket.java b/feature-server-pool/src/main/java/org/onap/policy/drools/serverpool/Bucket.java
index bf3af4a8..5044b3e9 100644
--- a/feature-server-pool/src/main/java/org/onap/policy/drools/serverpool/Bucket.java
+++ b/feature-server-pool/src/main/java/org/onap/policy/drools/serverpool/Bucket.java
@@ -874,7 +874,7 @@ public class Bucket {
|| thisServer == secondaryBackup));
// invoke 'TargetLock' directly
- TargetLock.auditBucket(this, isOwner, isBackup);
+ TargetLock.auditBucket(this, isOwner);
for (ServerPoolApi feature : ServerPoolApi.impl.getList()) {
feature.auditBucket(this, isOwner, isBackup);
}
diff --git a/feature-server-pool/src/main/java/org/onap/policy/drools/serverpool/TargetLock.java b/feature-server-pool/src/main/java/org/onap/policy/drools/serverpool/TargetLock.java
index dee03a1b..c7de4c43 100644
--- a/feature-server-pool/src/main/java/org/onap/policy/drools/serverpool/TargetLock.java
+++ b/feature-server-pool/src/main/java/org/onap/policy/drools/serverpool/TargetLock.java
@@ -660,9 +660,8 @@ public class TargetLock implements Lock, Serializable {
*
* @param bucket the bucket to audit
* @param owner 'true' if the current host owns the bucket
- * @param backup 'true' if the current host is a backup for the bucket
*/
- static void auditBucket(Bucket bucket, boolean isOwner, boolean isBackup) {
+ static void auditBucket(Bucket bucket, boolean isOwner) {
if (!isOwner) {
// we should not have any 'TargetLock' adjuncts
if (bucket.removeAdjunct(LocalLocks.class) != null) {