diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-09-20 01:20:35 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-09-20 10:11:43 +0100 |
commit | 0190dca0b181f6a9fd069864e396164b532bebd4 (patch) | |
tree | aa0520b1f78f3dd330faef0c32d1a984920d3410 /tools | |
parent | 70e2e12154c256b9eb1c1b88fb46630c0ac130a1 (diff) |
callcatcher: StandardErrorInfo is never constructed
Diffstat (limited to 'tools')
-rw-r--r-- | tools/inc/tools/errinf.hxx | 19 | ||||
-rw-r--r-- | tools/source/ref/errinf.cxx | 14 |
2 files changed, 0 insertions, 33 deletions
diff --git a/tools/inc/tools/errinf.hxx b/tools/inc/tools/errinf.hxx index 0b08d38592c8..951fcfe938ff 100644 --- a/tools/inc/tools/errinf.hxx +++ b/tools/inc/tools/errinf.hxx @@ -85,25 +85,6 @@ public: }; -// --------------------- -// - StandardErrorInfo - -// --------------------- - -class StandardErrorInfo : public DynamicErrorInfo -{ -private: - sal_uIntPtr lExtId; - -public: - TYPEINFO(); - - StandardErrorInfo( sal_uIntPtr lUserId, sal_uIntPtr lExtId, - sal_uInt16 nFlags = 0); - sal_uIntPtr GetExtendedErrorCode() const { return lExtId; } - -}; - - // ------------------- // - StringErrorInfo - // ------------------- diff --git a/tools/source/ref/errinf.cxx b/tools/source/ref/errinf.cxx index d47dc7586d0a..cc8a18ce754f 100644 --- a/tools/source/ref/errinf.cxx +++ b/tools/source/ref/errinf.cxx @@ -138,7 +138,6 @@ void EDcr_Impl::UnRegisterEDcr(DynamicErrorInfo *pDcr) TYPEINIT0(ErrorInfo); TYPEINIT1(DynamicErrorInfo, ErrorInfo); -TYPEINIT1(StandardErrorInfo, DynamicErrorInfo); TYPEINIT1(StringErrorInfo, DynamicErrorInfo); TYPEINIT1(TwoStringErrorInfo, DynamicErrorInfo); TYPEINIT1(MessageInfo, DynamicErrorInfo); @@ -188,13 +187,6 @@ sal_uInt16 DynamicErrorInfo::GetDialogMask() const } -StandardErrorInfo::StandardErrorInfo( - sal_uIntPtr UserId, sal_uIntPtr lArgExtId, sal_uInt16 nFlags) -: DynamicErrorInfo(UserId, nFlags), lExtId(lArgExtId) -{ -} - - StringErrorInfo::StringErrorInfo( sal_uIntPtr UserId, const String& aStringP, sal_uInt16 nFlags) : DynamicErrorInfo(UserId, nFlags), aString(aStringP) @@ -444,12 +436,6 @@ sal_Bool SimpleErrorHandler::CreateString( aStr.append(RTL_CONSTASCII_STRINGPARAM("\nDId ")); aStr.append(static_cast<sal_Int32>(*pDyn)); } - StandardErrorInfo *pStd=PTR_CAST(StandardErrorInfo,pInfo); - if(pStd) - { - aStr.append(RTL_CONSTASCII_STRINGPARAM("\nXId ")); - aStr.append(static_cast<sal_Int32>(pStd->GetExtendedErrorCode())); - } rStr = rtl::OStringToOUString(aStr.makeStringAndClear(), RTL_TEXTENCODING_ASCII_US); return sal_True; |