Author: veithen
Date: Sun Oct 10 15:26:42 2010
New Revision: 1006306

URL: http://svn.apache.org/viewvc?rev=1006306&view=rev
Log:
WSCOMMONS-556: Removed an unused attribute and dead code in TextNodeImpl.

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

Modified: 
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/TextNodeImpl.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/TextNodeImpl.java?rev=1006306&r1=1006305&r2=1006306&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/TextNodeImpl.java
 (original)
+++ 
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/TextNodeImpl.java
 Sun Oct 10 15:26:42 2010
@@ -28,7 +28,6 @@ import org.apache.axiom.om.OMNamespace;
 import org.apache.axiom.om.OMNode;
 import org.apache.axiom.om.OMText;
 import org.apache.axiom.om.OMXMLParserWrapper;
-import org.apache.axiom.om.impl.OMNamespaceImpl;
 import org.apache.axiom.om.impl.builder.XOPBuilder;
 import org.apache.axiom.util.UIDGenerator;
 import org.apache.axiom.util.base64.Base64Utils;
@@ -64,17 +63,6 @@ public abstract class TextNodeImpl exten
     private Object dataHandlerObject = null;
 
     /**
-     * Field nameSpace is used when serializing Binary stuff as MTOM optimized.
-     */
-    protected OMNamespace ns = null;
-
-    /**
-     * Field nameSpace used when serializing Binary stuff as MTOM optimized.
-     */
-    public static final OMNamespace XOP_NS = new OMNamespaceImpl(
-            "http://www.w3.org/2004/08/xop/include";, "xop");
-
-    /**
      * Creates a text node with the given text required by the OMDOMFactory. 
The owner document
      * should be set properly when appending this to a DOM tree.
      *
@@ -86,7 +74,6 @@ public abstract class TextNodeImpl exten
         //        : new StringBuffer("");
         this.textValue = (text != null) ? text : "";
         this.done = true;
-        this.ns = XOP_NS;
     }
 
     /**
@@ -104,7 +91,6 @@ public abstract class TextNodeImpl exten
         this.isBinary = true;
         this.done = true;
         this.builder = builder;
-        this.ns = XOP_NS;
     }
 
     /**
@@ -145,11 +131,6 @@ public abstract class TextNodeImpl exten
         // Do we need a deep copy of the data-handler 
         this.contentID = source.contentID;
         this.dataHandlerObject = source.dataHandlerObject;
-
-        if (source.ns != null) {
-            this.ns = new OMNamespaceImpl(source.ns.getNamespaceURI(),
-                    source.ns.getPrefix());
-        }
     }
 
     public TextNodeImpl(String text, String mimeType, boolean optimize,
@@ -176,7 +157,6 @@ public abstract class TextNodeImpl exten
         this.isBinary = true;
         this.optimize = optimize;
         done = true;
-        this.ns = XOP_NS;
     }
 
     /**
@@ -203,7 +183,6 @@ public abstract class TextNodeImpl exten
     public TextNodeImpl(DocumentImpl ownerNode, OMFactory factory) {
         super(ownerNode, factory);
         this.done = true;
-        this.ns = XOP_NS;
     }
 
     /**
@@ -213,7 +192,6 @@ public abstract class TextNodeImpl exten
     public TextNodeImpl(DocumentImpl ownerNode, String value, OMFactory 
factory) {
         super(ownerNode, value, factory);
         this.done = true;
-        this.ns = XOP_NS;
     }
 
 
@@ -221,7 +199,6 @@ public abstract class TextNodeImpl exten
         super(ownerNode, factory);
         this.charArray = value;
         this.done = true;
-        this.ns = XOP_NS;
     }
 
     /**


Reply via email to