diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-18 13:18:56 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-19 06:40:28 +0000 |
commit | 581e4da5847733a0e87d5ff9cd1c9f2b9fa471fe (patch) | |
tree | 9a641b563b2a930056f1e3ce3ed5ad20944b4911 /svtools | |
parent | 0a17332884db7a999df7190e674cfe2ecc0069c6 (diff) |
loplugin:unusedmethods in tools
Change-Id: I26a4ce6e849615d6d24632650ca03c40ab16502e
Reviewed-on: https://gerrit.libreoffice.org/25089
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/misc/ehdl.cxx | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/svtools/source/misc/ehdl.cxx b/svtools/source/misc/ehdl.cxx index 6f805ec303d6..4579966143cc 100644 --- a/svtools/source/misc/ehdl.cxx +++ b/svtools/source/misc/ehdl.cxx @@ -173,16 +173,7 @@ bool SfxErrorHandler::CreateString( sal_uLong nErrCode = pErr->GetErrorCode() & ERRCODE_ERROR_MASK; if( nErrCode>=lEnd || nErrCode<=lStart ) return false; - const MessageInfo *pMsgInfo = dynamic_cast<const MessageInfo*>( pErr ); - if(pMsgInfo) - { - if(GetMessageString(nErrCode, rStr, nFlags)) - { - rStr = rStr.replaceAll("$(ARG1)", pMsgInfo->GetMessageArg()); - return true; - } - } - else if(GetErrorString(nErrCode, rStr, nFlags)) + if(GetErrorString(nErrCode, rStr, nFlags)) { const StringErrorInfo *pStringInfo = dynamic_cast<const StringErrorInfo *>(pErr); if(pStringInfo) |