From 581e4da5847733a0e87d5ff9cd1c9f2b9fa471fe Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 18 May 2016 13:18:56 +0200 Subject: loplugin:unusedmethods in tools Change-Id: I26a4ce6e849615d6d24632650ca03c40ab16502e Reviewed-on: https://gerrit.libreoffice.org/25089 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svtools/source/misc/ehdl.cxx | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'svtools') 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( 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(pErr); if(pStringInfo) -- cgit