Kaydet (Commit) ef160221 authored tarafından Marcel Metz's avatar Marcel Metz Kaydeden (comit) David Tardon

Removed unused DBG_WARNING{4, 5} macros, replaced DBG_WARNINGFILE

üst 1efa072b
...@@ -945,7 +945,7 @@ void IconChoiceDialog::PageCreated( sal_uInt16 /*nId*/, IconChoicePage& /*rPage* ...@@ -945,7 +945,7 @@ void IconChoiceDialog::PageCreated( sal_uInt16 /*nId*/, IconChoicePage& /*rPage*
SfxItemSet* IconChoiceDialog::CreateInputItemSet( sal_uInt16 ) SfxItemSet* IconChoiceDialog::CreateInputItemSet( sal_uInt16 )
{ {
DBG_WARNINGFILE( "CreateInputItemSet nicht implementiert" ); SAL_INFO( "cui", "CreateInputItemSet not implemented" );
return 0; return 0;
} }
......
...@@ -834,7 +834,7 @@ void SfxTabDialog::RemoveTabPage( sal_uInt16 nId ) ...@@ -834,7 +834,7 @@ void SfxTabDialog::RemoveTabPage( sal_uInt16 nId )
} }
else else
{ {
DBG_WARNINGFILE( "TabPage-Id not known" ); SAL_INFO( "sfx2", "TabPage-Id not known" );
} }
} }
...@@ -973,7 +973,7 @@ SfxItemSet* SfxTabDialog::CreateInputItemSet( sal_uInt16 ) ...@@ -973,7 +973,7 @@ SfxItemSet* SfxTabDialog::CreateInputItemSet( sal_uInt16 )
*/ */
{ {
DBG_WARNINGFILE( "CreateInputItemSet not implemented" ); SAL_INFO( "sfx2", "CreateInputItemSet not implemented" );
return new SfxAllItemSet( SFX_APP()->GetPool() ); return new SfxAllItemSet( SFX_APP()->GetPool() );
} }
......
...@@ -45,8 +45,8 @@ ...@@ -45,8 +45,8 @@
Because the assertion macros (DBG_ASSERT, DBG_BF_ASSERT) have been used for Because the assertion macros (DBG_ASSERT, DBG_BF_ASSERT) have been used for
true assertions as well as to log warnings, they map to SAL_WARN instead of true assertions as well as to log warnings, they map to SAL_WARN instead of
standard assert. The warning and error macros (DBG_ASSERTWARNING, standard assert. The warning and error macros (DBG_ASSERTWARNING,
DBG_WARNING, DBG_WARNING1, ..., DBG_WARNING5, DBG_WARNINGFILE, DBG_WARNING, DBG_WARNING1, ..., DBG_WARNING3, DBG_ERRORFILE) all map to
DBG_ERRORFILE) all map to SAL_INFO. SAL_INFO.
*/ */
// ------------ // ------------
...@@ -457,13 +457,6 @@ public: ...@@ -457,13 +457,6 @@ public:
SAL_DETAIL_INFO_IF_FORMAT(true, "legacy.tools", aWarning, x1, x2) SAL_DETAIL_INFO_IF_FORMAT(true, "legacy.tools", aWarning, x1, x2)
#define DBG_WARNING3( aWarning, x1, x2, x3 ) \ #define DBG_WARNING3( aWarning, x1, x2, x3 ) \
SAL_DETAIL_INFO_IF_FORMAT(true, "legacy.tools", aWarning, x1, x2, x3) SAL_DETAIL_INFO_IF_FORMAT(true, "legacy.tools", aWarning, x1, x2, x3)
#define DBG_WARNING4( aWarning, x1, x2, x3, x4 ) \
SAL_DETAIL_INFO_IF_FORMAT(true, "legacy.tools", aWarning, x1, x2, x3, x4)
#define DBG_WARNING5( aWarning, x1, x2, x3, x4, x5 ) \
SAL_DETAIL_INFO_IF_FORMAT( \
true, "legacy.tools", aWarning, x1, x2, x3, x4, x5)
#define DBG_WARNINGFILE( aWarning ) SAL_DETAIL_INFO_IF_FORMAT( \
true, "legacy.tools", aWarning, __FILE__, __LINE__)
#define DBG_ERRORFILE( aError ) \ #define DBG_ERRORFILE( aError ) \
SAL_DETAIL_INFO_IF_FORMAT(true, "legacy.tools", aError, __FILE__, __LINE__) SAL_DETAIL_INFO_IF_FORMAT(true, "legacy.tools", aError, __FILE__, __LINE__)
...@@ -535,9 +528,6 @@ typedef const sal_Char* (*DbgUsr)(const void* pThis ); ...@@ -535,9 +528,6 @@ typedef const sal_Char* (*DbgUsr)(const void* pThis );
#define DBG_WARNING1( aWarning, x1 ) ((void)0) #define DBG_WARNING1( aWarning, x1 ) ((void)0)
#define DBG_WARNING2( aWarning, x1, x2 ) ((void)0) #define DBG_WARNING2( aWarning, x1, x2 ) ((void)0)
#define DBG_WARNING3( aWarning, x1, x2, x3 ) ((void)0) #define DBG_WARNING3( aWarning, x1, x2, x3 ) ((void)0)
#define DBG_WARNING4( aWarning, x1, x2, x3, x4 ) ((void)0)
#define DBG_WARNING5( aWarning, x1, x2, x3, x4, x5 ) ((void)0)
#define DBG_WARNINGFILE( aWarning ) ((void)0)
#define DBG_ERRORFILE( aError ) ((void)0) #define DBG_ERRORFILE( aError ) ((void)0)
#define DBG_TESTSOLARMUTEX() ((void)0) #define DBG_TESTSOLARMUTEX() ((void)0)
......
...@@ -176,9 +176,8 @@ static const sal_Char* pDbgHelpText[] = ...@@ -176,9 +176,8 @@ static const sal_Char* pDbgHelpText[] =
"dropdown list.\n" "dropdown list.\n"
"\n", "\n",
"Warnings\n", "Warnings\n",
"DBG_WARNING() can be used to output warnings. DBG_WARNINGFILE() also outputs " "DBG_WARNING() can be used to output warnings. DBG_WARNING1() to "
"the file and the line number where the macro is located. DBG_WARNING1() to " "DBG_WARNING3() can be used to produce formatted output (printf format string). "
"DBG_WARNING5() can be used to produce formatted output (printf format string). "
"In case you want to have conditional warnings DBG_ASSERTWARNING() can be " "In case you want to have conditional warnings DBG_ASSERTWARNING() can be "
"used. The warning will be produced if the condition was not met. The first " "used. The warning will be produced if the condition was not met. The first "
"parameter is the condition and the second parameter is the message to be " "parameter is the condition and the second parameter is the message to be "
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment