diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-01-29 09:07:25 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-01-29 23:42:26 +0000 |
commit | 309574394bd4ae3e9e10e5ff0d64bdd7bbbc8b83 (patch) | |
tree | f8b8cea0a81bc74ca34e8bda2d0dfce939b28ce0 /unoxml/source/dom/element.cxx | |
parent | images: Don't fallback to indrustrial, it's merged to tango during build. (diff) | |
download | core-309574394bd4ae3e9e10e5ff0d64bdd7bbbc8b83.tar.gz core-309574394bd4ae3e9e10e5ff0d64bdd7bbbc8b83.zip |
callcatcher: large newly detected unused methods post de-virtualization
i.e lots now able to be detected after...
commit b44cbb26efe1d0b0950b1e1613e131b506dc3876
Author: Noel Grandin <noel@peralex.com>
Date: Tue Jan 20 12:38:10 2015 +0200
new loplugin: change virtual methods to non-virtual
Where we can prove that the virtual method is never overriden.
In the case of pure-virtual methods, we remove the method entirely.
Sometimes this leads to entire methods and fields being
eliminated.
Change-Id: I605e2fa56f7186c3d3a764f3cd30f5cf7f881f9d
Diffstat (limited to 'unoxml/source/dom/element.cxx')
-rw-r--r-- | unoxml/source/dom/element.cxx | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/unoxml/source/dom/element.cxx b/unoxml/source/dom/element.cxx index b99eb6dfb212..eda6a419ebfc 100644 --- a/unoxml/source/dom/element.cxx +++ b/unoxml/source/dom/element.cxx @@ -768,27 +768,6 @@ namespace DOM { return OUString(); } - - void SAL_CALL CElement::setElementName(const OUString& aName) - throw (RuntimeException, DOMException) - { - if (aName.isEmpty() || (0 <= aName.indexOf(':'))) - { - DOMException e; - e.Code = DOMExceptionType_INVALID_CHARACTER_ERR; - throw e; - } - - ::osl::MutexGuard const g(m_rMutex); - - if (0 == m_aNodePtr) { - throw RuntimeException(); - } - OString oName = OUStringToOString(aName, RTL_TEXTENCODING_UTF8); - xmlChar const *xName = reinterpret_cast<xmlChar const *>(oName.getStr()); - xmlNodeSetName(m_aNodePtr, xName); - } - } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |