From aa123edaf307ac238f3aa79d951ea4b991c1f7aa Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Wed, 13 Dec 2017 14:35:33 +0000 Subject: Simplify CXML_Element::GetTagName(). It has an unused parameter. Change-Id: Iae92b8f84bc560055cb0cd730a0fe52c8bd9dd79 Reviewed-on: https://pdfium-review.googlesource.com/21071 Commit-Queue: dsinclair Reviewed-by: dsinclair --- core/fxcrt/xml/cxml_element.cpp | 10 ++-------- core/fxcrt/xml/cxml_element.h | 2 +- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/core/fxcrt/xml/cxml_element.cpp b/core/fxcrt/xml/cxml_element.cpp index ee51004b2c..9d3e22c8f9 100644 --- a/core/fxcrt/xml/cxml_element.cpp +++ b/core/fxcrt/xml/cxml_element.cpp @@ -33,14 +33,8 @@ const CXML_Element* CXML_Element::AsElement() const { return this; } -ByteString CXML_Element::GetTagName(bool bQualified) const { - if (!bQualified || m_QSpaceName.IsEmpty()) { - return m_TagName; - } - ByteString bsTag = m_QSpaceName; - bsTag += ":"; - bsTag += m_TagName; - return bsTag; +ByteString CXML_Element::GetTagName() const { + return m_TagName; } ByteString CXML_Element::GetNamespaceURI(const ByteString& qName) const { diff --git a/core/fxcrt/xml/cxml_element.h b/core/fxcrt/xml/cxml_element.h index 220eb7bcad..5c4d24d661 100644 --- a/core/fxcrt/xml/cxml_element.h +++ b/core/fxcrt/xml/cxml_element.h @@ -27,7 +27,7 @@ class CXML_Element : public CXML_Object { CXML_Element* AsElement() override; const CXML_Element* AsElement() const override; - ByteString GetTagName(bool bQualified = false) const; + ByteString GetTagName() const; ByteString GetNamespaceURI(const ByteString& qName) const; const CXML_Element* GetParent() const { return m_pParent.Get(); } uint32_t CountAttrs() const { return m_AttrMap.GetSize(); } -- cgit v1.2.3