diff --git a/src/dom/EntityReferenceImpl.cpp b/src/dom/EntityReferenceImpl.cpp index 49f8168752e2f816cff78fb0b74e4a322bf0b169..559af1249a7e3020eefd79bdec3bdf08e8c4cabe 100644 --- a/src/dom/EntityReferenceImpl.cpp +++ b/src/dom/EntityReferenceImpl.cpp @@ -168,64 +168,6 @@ short EntityReferenceImpl::getNodeType() { }; -/** -* Query the number of children in the entity definition. -* (A bit more work than asking locally, but may be able to avoid -* or defer building the clone subtree.) -* -* @return org.w3c.dom.NodeList -*/ -unsigned int EntityReferenceImpl::getLength() -{ - unsigned int length = ChildAndParentNode::getLength(); - -#if (0) // Till we add entity nodes to the doc root element. - - DocumentTypeImpl *doctype; - NamedNodeMapImpl *entities; - EntityImpl *entDef; - if (null != (doctype = ownerDocument->getDoctype()) && - null != (entities = doctype->getEntities()) && - null != (entDef = (EntityImpl *)entities->getNamedItem(name)) - ) - length=entDef->getChildNodes()->getLength(); -#endif - - return length; -} - - -/** -* Query the presence of children in the entity definition. -* (A bit more work than asking locally, but may be able to avoid -* or defer building the clone subtree.) -* -* @return boolean -*/ -bool EntityReferenceImpl::hasChildNodes() -{ -#if 0 - // defer this query for now. - //There's lot of work to be done here before it can return the actual value. - bool haskids=false; - - DocumentTypeImpl *doctype; - NamedNodeMapImpl *entities; - EntityImpl *entDef; - if (null != (doctype = ownerDocument->getDoctype()) && - null != (entities = doctype->getEntities()) && - null != (entDef = (EntityImpl *)entities->getNamedItem(name)) - ) - haskids=entDef->hasChildNodes(); - - return haskids; -#endif - - return firstChild!=null; -} - - - bool EntityReferenceImpl::isEntityReference() { return true; diff --git a/src/dom/EntityReferenceImpl.hpp b/src/dom/EntityReferenceImpl.hpp index 357135c55e52adaf6e78c386c19b1ed1a09045d6..5d383edf7e1a0879fcab6652c07d3e64db9cde8f 100644 --- a/src/dom/EntityReferenceImpl.hpp +++ b/src/dom/EntityReferenceImpl.hpp @@ -86,8 +86,6 @@ public: virtual NodeImpl * cloneNode(bool deep); virtual DOMString getNodeName(); virtual short getNodeType(); - virtual unsigned int getLength(); - virtual bool hasChildNodes(); virtual bool isEntityReference(); virtual void setNodeValue(const DOMString &); virtual void setReadOnly(bool readOnly,bool deep);