Return-Path: X-Original-To: apmail-ws-commits-archive@minotaur.apache.org Delivered-To: apmail-ws-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D28E2D21C for ; Wed, 5 Sep 2012 08:39:57 +0000 (UTC) Received: (qmail 99766 invoked by uid 500); 5 Sep 2012 08:39:57 -0000 Delivered-To: apmail-ws-commits-archive@ws.apache.org Received: (qmail 99738 invoked by uid 500); 5 Sep 2012 08:39:57 -0000 Mailing-List: contact commits-help@ws.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ws.apache.org Delivered-To: mailing list commits@ws.apache.org Received: (qmail 99730 invoked by uid 99); 5 Sep 2012 08:39:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Sep 2012 08:39:57 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Sep 2012 08:39:54 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 67BC223889C5; Wed, 5 Sep 2012 08:39:05 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1381067 - /webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ElementImpl.java Date: Wed, 05 Sep 2012 08:39:05 -0000 To: commits@ws.apache.org From: veithen@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120905083905.67BC223889C5@eris.apache.org> Author: veithen Date: Wed Sep 5 08:39:04 2012 New Revision: 1381067 URL: http://svn.apache.org/viewvc?rev=1381067&view=rev Log: Removed unused code. Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ElementImpl.java Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ElementImpl.java URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ElementImpl.java?rev=1381067&r1=1381066&r2=1381067&view=diff ============================================================================== --- webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ElementImpl.java (original) +++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ElementImpl.java Wed Sep 5 08:39:04 2012 @@ -466,59 +466,6 @@ public class ElementImpl extends ParentN } - private OMAttribute addAttribute(String namespaceURI, String qualifiedName, - String value) throws DOMException { - if (!DOMUtil.isQualifiedName(qualifiedName)) { - String msg = DOMMessageFormatter.formatMessage( - DOMMessageFormatter.DOM_DOMAIN, DOMException.INVALID_CHARACTER_ERR , - null); - throw new DOMException(DOMException.INVALID_CHARACTER_ERR, msg); - } - - if (this.attributes == null) { - this.attributes = new AttributeMap(this); - } - if (namespaceURI != null) { - if (!DOMUtil.isValidNamespace(namespaceURI, qualifiedName)) { - String msg = DOMMessageFormatter.formatMessage( - DOMMessageFormatter.DOM_DOMAIN, DOMException.NAMESPACE_ERR, null); - throw new DOMException(DOMException.NAMESPACE_ERR, msg); - } - // Check whether there's an existing Attr with same local name and - // namespace URI - String localName = DOMUtil.getLocalName(qualifiedName); - Attr attributeNode = this.getAttributeNodeNS(namespaceURI, localName); - if (attributeNode != null) { - AttrImpl tempAttr = ((AttrImpl) attributeNode); - tempAttr.setOMNamespace(new OMNamespaceImpl(namespaceURI, DOMUtil - .getPrefix(qualifiedName))); - tempAttr.setAttributeValue(value); - this.attributes.setNamedItem(tempAttr); - return tempAttr; - } else { - OMNamespaceImpl ns = new OMNamespaceImpl(namespaceURI, DOMUtil - .getPrefix(qualifiedName)); - AttrImpl attr = new AttrImpl((DocumentImpl) this - .getOwnerDocument(), localName, ns, value, this.factory); - this.attributes.setNamedItem(attr); - return attr; - } - } else { - Attr attributeNode = this.getAttributeNode(qualifiedName); - if (attributeNode != null) { - AttrImpl tempAttr = ((AttrImpl) attributeNode); - tempAttr.setAttributeValue(value); - this.attributes.setNamedItem(tempAttr); - return tempAttr; - } else { - AttrImpl attr = new AttrImpl((DocumentImpl) this - .getOwnerDocument(), qualifiedName, value, this.factory); - this.attributes.setNamedItem(attr); - return attr; - } - } - } - /** Returns whether this element contains any attribute or not. */ public boolean hasAttributes() { return attributes != null && attributes.getLength() > 0;