summaryrefslogtreecommitdiff
path: root/xmloff/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-25 11:03:15 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-25 12:03:50 +0200
commit2fffaf6f05d829e345ad8b391646a6e8df9a9a26 (patch)
treeec1b7343262433ee2ea9ab6e5197b6fd2327b685 /xmloff/source
parentf74da1315a5b2ec232a66944e41ff90231b383be (diff)
loplugin:unusedmethods
Change-Id: Ia874baf21257e5fe41e104211068a2bcc50446eb Reviewed-on: https://gerrit.libreoffice.org/40391 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source')
-rw-r--r--xmloff/source/core/xmlimp.cxx10
-rw-r--r--xmloff/source/core/xmltoken.cxx11
-rw-r--r--xmloff/source/style/prstylecond.cxx38
3 files changed, 0 insertions, 59 deletions
diff --git a/xmloff/source/core/xmlimp.cxx b/xmloff/source/core/xmlimp.cxx
index 891c116098c0..c502d0d7e67e 100644
--- a/xmloff/source/core/xmlimp.cxx
+++ b/xmloff/source/core/xmlimp.cxx
@@ -2007,16 +2007,6 @@ const OUString SvXMLImport::getNamespacePrefixFromToken( sal_Int32 nToken )
return OUString();
}
-const OUString SvXMLImport::getNamespaceURIFromToken( sal_Int32 nToken )
-{
- sal_Int32 nNamespaceToken = ( nToken & NMSP_MASK ) >> NMSP_SHIFT;
- auto aIter( aNamespaceMap.find( nNamespaceToken ) );
- if( aIter != aNamespaceMap.end() )
- return (*aIter).second.second;
- else
- return OUString();
-}
-
void SvXMLImport::initializeNamespaceMaps()
{
auto mapTokenToNamespace = [&]( sal_Int32 nToken, sal_Int32 nPrefix, sal_Int32 nNamespace )
diff --git a/xmloff/source/core/xmltoken.cxx b/xmloff/source/core/xmltoken.cxx
index c7f0dc673caf..65829c298942 100644
--- a/xmloff/source/core/xmltoken.cxx
+++ b/xmloff/source/core/xmltoken.cxx
@@ -3336,17 +3336,6 @@ namespace xmloff { namespace token {
}
bool IsXMLToken(
- const char* pCString,
- enum XMLTokenEnum eToken )
- {
- assert(XML_TOKEN_INVALID < eToken);
- assert(eToken < XML_TOKEN_END);
-
- const XMLTokenEntry* pToken = &aTokenList[(sal_uInt16)eToken];
- return !strcmp( pCString, pToken->pChar );
- }
-
- bool IsXMLToken(
const sax_fastparser::FastAttributeList::FastAttributeIter& aIter,
enum XMLTokenEnum eToken )
{
diff --git a/xmloff/source/style/prstylecond.cxx b/xmloff/source/style/prstylecond.cxx
index 28312fb5cd3b..4568c6bc88b2 100644
--- a/xmloff/source/style/prstylecond.cxx
+++ b/xmloff/source/style/prstylecond.cxx
@@ -84,42 +84,4 @@ OUString GetParaStyleCondExternal( OUString const &internal)
return OUString();
}
-OUString GetParaStyleCondInternal( OUString const &external)
-{
- sal_Int32 paren = external.indexOf('(');
-
- if( paren > 0 && external[paren + 1] == ')' )
- {
- OUString stub( external.getStr(), paren );
- int numval = -1;
- unsigned i;
-
- if(external.getLength() > paren + 2)
- {
- if(external[paren + 2] == '=')
- {
- OUString num( external.getStr() + 3 );
-
- numval = num.toInt32();
- }
- else
- {
- return OUString();
- }
- }
-
- for(i = 0; i < CONDITION_COUNT; ++i)
- {
- if( aConditionMap[i].aValue == numval &&
- stub == GetXMLToken( aConditionMap[i].nExternal ) )
- {
- return OUString( aConditionMap[i].aInternal,
- strlen( aConditionMap[i].aInternal ),
- RTL_TEXTENCODING_ASCII_US );
- }
- }
- }
- return OUString();
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */