diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-10 09:24:02 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-10 11:36:23 +0000 |
commit | 1e7891c103f01f68924817bc02bda892311806fa (patch) | |
tree | 62b959d7e91ebe0fbf6790a8adfc469de8df7d5f /tools | |
parent | callcatcher: update unused code (diff) | |
download | core-1e7891c103f01f68924817bc02bda892311806fa.tar.gz core-1e7891c103f01f68924817bc02bda892311806fa.zip |
drop the SimpleErrorHandler
Change-Id: I968300664c386e6cf33461c5858833832e452e28
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/ref/errinf.cxx | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/tools/source/ref/errinf.cxx b/tools/source/ref/errinf.cxx index be016b38ba79..c73539d17674 100644 --- a/tools/source/ref/errinf.cxx +++ b/tools/source/ref/errinf.cxx @@ -372,36 +372,4 @@ bool ErrHdl_Impl::CreateString( const ErrorHandler *pStart, return false; } -bool SimpleErrorHandler::CreateString( - const ErrorInfo *pInfo, OUString &rStr, sal_uInt16 &) const -{ - sal_uIntPtr nId = pInfo->GetErrorCode(); - OStringBuffer aStr("Id "); - aStr.append(static_cast<sal_Int32>(nId)); - aStr.append(" only handled by SimpleErrorHandler"); - aStr.append("\nErrorCode: "); - aStr.append(static_cast<sal_Int32>( - nId & ((1L << ERRCODE_CLASS_SHIFT) - 1 ))); - aStr.append("\nErrorClass: "); - aStr.append(static_cast<sal_Int32>( - (nId & ERRCODE_CLASS_MASK) >> ERRCODE_CLASS_SHIFT)); - aStr.append("\nErrorArea: "); - aStr.append(static_cast<sal_Int32>((nId & ERRCODE_ERROR_MASK & - ~((1 << ERRCODE_AREA_SHIFT ) -1 ) ) >> ERRCODE_AREA_SHIFT)); - DynamicErrorInfo *pDyn=PTR_CAST(DynamicErrorInfo,pInfo); - if(pDyn) - { - aStr.append("\nDId "); - aStr.append(static_cast<sal_Int32>(*pDyn)); - } - rStr = OStringToOUString(aStr.makeStringAndClear(), - RTL_TEXTENCODING_ASCII_US); - return true; -} - -SimpleErrorHandler::SimpleErrorHandler() - : ErrorHandler() -{ -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |