ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veit...@apache.org
Subject svn commit: r1796526 - in /webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/om/impl: intf/AxiomContainer.java intf/AxiomElement.java mixin/AxiomContainerSupport.aj mixin/AxiomElementSupport.aj
Date Sun, 28 May 2017 19:51:28 GMT
Author: veithen
Date: Sun May 28 19:51:28 2017
New Revision: 1796526

URL: http://svn.apache.org/viewvc?rev=1796526&view=rev
Log:
Remove dead code.

Modified:
    webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/om/impl/intf/AxiomContainer.java
    webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/om/impl/intf/AxiomElement.java
    webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/om/impl/mixin/AxiomContainerSupport.aj
    webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/om/impl/mixin/AxiomElementSupport.aj

Modified: webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/om/impl/intf/AxiomContainer.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/om/impl/intf/AxiomContainer.java?rev=1796526&r1=1796525&r2=1796526&view=diff
==============================================================================
--- webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/om/impl/intf/AxiomContainer.java
(original)
+++ webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/om/impl/intf/AxiomContainer.java
Sun May 28 19:51:28 2017
@@ -23,8 +23,6 @@ import org.apache.axiom.om.OMException;
 import org.apache.axiom.om.OMNode;
 
 public interface AxiomContainer extends OMContainer, AxiomCoreParentNode {
-    void discarded();
-    
     /**
      * Check if the node can be added as a child of this container.
      * 

Modified: webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/om/impl/intf/AxiomElement.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/om/impl/intf/AxiomElement.java?rev=1796526&r1=1796525&r2=1796526&view=diff
==============================================================================
--- webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/om/impl/intf/AxiomElement.java
(original)
+++ webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/om/impl/intf/AxiomElement.java
Sun May 28 19:51:28 2017
@@ -23,21 +23,5 @@ import org.apache.axiom.om.OMElement;
 import org.apache.axiom.om.OMNamespace;
 
 public interface AxiomElement extends OMElement, AxiomContainer, AxiomChildNode, AxiomNamedInformationItem,
CoreNSAwareElement {
-    /**
-     * Adds a namespace declaration without doing any additional checks. This method is used
-     * internally by the builder (which can safely assume that the data received from the
parser is
-     * well formed with respect to namespaces).
-     * <p>
-     * In contrast to {@link OMElement#declareNamespace(String, String)} this method can
be used to
-     * declare the default namespace.
-     * 
-     * @param uri
-     *            the namespace to declare; must not be <code>null</code>
-     * @param prefix
-     *            the prefix to associate with the given namespace; must not be <code>null</code>
-     * @return the created namespace information item
-     */
-    OMNamespace addNamespaceDeclaration(String uri, String prefix);
-    
     void addNamespaceDeclaration(OMNamespace ns);
 }

Modified: webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/om/impl/mixin/AxiomContainerSupport.aj
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/om/impl/mixin/AxiomContainerSupport.aj?rev=1796526&r1=1796525&r2=1796526&view=diff
==============================================================================
--- webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/om/impl/mixin/AxiomContainerSupport.aj
(original)
+++ webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/om/impl/mixin/AxiomContainerSupport.aj
Sun May 28 19:51:28 2017
@@ -88,10 +88,6 @@ import org.xml.sax.InputSource;
 public aspect AxiomContainerSupport {
     private static final OMXMLStreamReaderConfiguration defaultReaderConfiguration = new
OMXMLStreamReaderConfiguration();
     
-    public final void AxiomContainer.discarded() {
-        coreSetState(DISCARDED);
-    }
-
     public final OMXMLParserWrapper AxiomContainer.getBuilder() {
         BuilderImpl builder = (BuilderImpl)coreGetBuilder();
         if (builder == null) {

Modified: webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/om/impl/mixin/AxiomElementSupport.aj
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/om/impl/mixin/AxiomElementSupport.aj?rev=1796526&r1=1796525&r2=1796526&view=diff
==============================================================================
--- webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/om/impl/mixin/AxiomElementSupport.aj
(original)
+++ webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/om/impl/mixin/AxiomElementSupport.aj
Sun May 28 19:51:28 2017
@@ -373,14 +373,6 @@ public aspect AxiomElementSupport {
         ((AxiomAttribute)attr).coreRemove(AxiomSemantics.INSTANCE);
     }
 
-    public final OMNamespace AxiomElement.addNamespaceDeclaration(String uri, String prefix)
{
-        OMNamespace ns = new OMNamespaceImpl(uri, prefix);
-        AxiomNamespaceDeclaration decl = coreGetNodeFactory().createNode(AxiomNamespaceDeclaration.class);
-        decl.setDeclaredNamespace(ns);
-        coreAppendAttribute(decl);
-        return ns;
-    }
-    
     public final void AxiomElement.addNamespaceDeclaration(OMNamespace ns) {
         AxiomNamespaceDeclaration decl = coreGetNodeFactory().createNode(AxiomNamespaceDeclaration.class);
         decl.setDeclaredNamespace(ns);



Mime
View raw message