Author: veithen
Date: Wed Mar  7 22:07:44 2012
New Revision: 1298154

URL: http://svn.apache.org/viewvc?rev=1298154&view=rev
Log:
Removed unnecessary code.

Modified:
    
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/AttributeMap.java
    
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/NodeImpl.java

Modified: 
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/AttributeMap.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/AttributeMap.java?rev=1298154&r1=1298153&r2=1298154&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/AttributeMap.java
 (original)
+++ 
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/AttributeMap.java
 Wed Mar  7 22:07:44 2012
@@ -107,11 +107,6 @@ public class AttributeMap extends NamedN
         // // notify document
         // ownerNode.getOwnerDocument().setAttrNode(attr, previous);
 
-        // If the new attribute is not normalized,
-        // the owning element is inherently not normalized.
-        if (!attr.isNormalized()) {
-            ownerNode.isNormalized(false);
-        }
         return previous;
 
     }
@@ -181,11 +176,6 @@ public class AttributeMap extends NamedN
             }
         }
 
-        // If the new attribute is not normalized,
-        // the owning element is inherently not normalized.
-        if (!attr.isNormalized()) {
-            ownerNode.isNormalized(false);
-        }
         return previous;
     }
 

Modified: 
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/NodeImpl.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/NodeImpl.java?rev=1298154&r1=1298153&r2=1298154&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/NodeImpl.java
 (original)
+++ 
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/NodeImpl.java
 Wed Mar  7 22:07:44 2012
@@ -58,8 +58,6 @@ public abstract class NodeImpl implement
 
     protected final static short SPECIFIED = 0x1 << 4;
 
-    protected final static short NORMALIZED = 0x1 << 5;
-
     //
     // Constructors
     //
@@ -323,18 +321,6 @@ public abstract class NodeImpl implement
         flags = (short) (value ? flags | SPECIFIED : flags & ~SPECIFIED);
     }
 
-    final boolean isNormalized() {
-        return (flags & NORMALIZED) != 0;
-    }
-
-    final void isNormalized(boolean value) {
-        // See if flag should propagate to parent.
-        if (!value && isNormalized() && ownerDocument() != null) {
-            ownerDocument().isNormalized(false);
-        }
-        flags = (short) (value ? flags | NORMALIZED : flags & ~NORMALIZED);
-    }
-
     DocumentImpl ownerDocument() {
         return ownerNode;
     }


Reply via email to