summaryrefslogtreecommitdiff
path: root/core/fxcrt/xml/cxml_element.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-12-13 14:35:33 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-12-13 14:35:33 +0000
commitaa123edaf307ac238f3aa79d951ea4b991c1f7aa (patch)
treef47c65a7d94bfc539fb3e72d3772fb3a9a51a50e /core/fxcrt/xml/cxml_element.cpp
parent589e4659555c346148b8ef0837961ba8239811d9 (diff)
downloadpdfium-aa123edaf307ac238f3aa79d951ea4b991c1f7aa.tar.xz
Simplify CXML_Element::GetTagName().
It has an unused parameter. Change-Id: Iae92b8f84bc560055cb0cd730a0fe52c8bd9dd79 Reviewed-on: https://pdfium-review.googlesource.com/21071 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fxcrt/xml/cxml_element.cpp')
-rw-r--r--core/fxcrt/xml/cxml_element.cpp10
1 files changed, 2 insertions, 8 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 {