You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@axis.apache.org by ve...@apache.org on 2018/01/08 02:03:46 UTC

svn commit: r1820515 - /axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/PolicySubject.java

Author: veithen
Date: Mon Jan  8 02:03:46 2018
New Revision: 1820515

URL: http://svn.apache.org/viewvc?rev=1820515&view=rev
Log:
AXIS2-5904: Remove unused code.

Modified:
    axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/PolicySubject.java

Modified: axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/PolicySubject.java
URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/PolicySubject.java?rev=1820515&r1=1820514&r2=1820515&view=diff
==============================================================================
--- axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/PolicySubject.java (original)
+++ axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/PolicySubject.java Mon Jan  8 02:03:46 2018
@@ -31,8 +31,6 @@ import java.util.List;
 import java.util.concurrent.ConcurrentHashMap;
 
 public class PolicySubject {
-
-    private boolean updated = false;
     private Date lastUpdatedTime = new Date();
     
     private ConcurrentHashMap<String, PolicyComponent> attachedPolicyComponents = new ConcurrentHashMap<String, PolicyComponent>();
@@ -77,10 +75,6 @@ public class PolicySubject {
             PolicyComponent policyComponent) {
         attachedPolicyComponents.put(key, policyComponent);
         setLastUpdatedTime(new Date());
-        
-        if (!isUpdated()) {
-            setUpdated(true);
-        }
     }
 
     public PolicyComponent getAttachedPolicyComponent(String key) {
@@ -92,14 +86,6 @@ public class PolicySubject {
         return attachedPolicyComponents.values();
     }
 
-    public boolean isUpdated() {
-        return updated;
-    }
-
-    public void setUpdated(boolean updated) {
-        this.updated = updated;
-    }
-
     public void updatePolicy(Policy policy) {
         String key = (policy.getName() != null) ? policy.getName() : policy
                 .getId();
@@ -109,26 +95,16 @@ public class PolicySubject {
         }
         attachedPolicyComponents.put(key, policy);
         setLastUpdatedTime(new Date());
-        
-        if (!isUpdated()) {
-            setUpdated(true);
-        }
     }
 
     public void detachPolicyComponent(String key) {
         attachedPolicyComponents.remove(key);
         setLastUpdatedTime(new Date());
-        if (!isUpdated()) {
-            setUpdated(true);
-        }
     }
 
     public void clear() {
         attachedPolicyComponents.clear();
         setLastUpdatedTime(new Date());
-        if (!isUpdated()) {
-            setUpdated(true);
-        }
     }
 
     public Date getLastUpdatedTime() {