1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-03 14:13:11 +02:00

Remove crash reporting from help menu

This commit removes unused crash reporting menu items from the help menu
as the code related to it were already removed from the code tenacity.

Signed-off-by: Juozas <juozaspo@gmail.com>
This commit is contained in:
Juozas 2021-09-04 13:55:41 +03:00
parent fdf15b8366
commit fe71cee15f

View File

@ -347,31 +347,6 @@ void OnShowLog( const CommandContext &context )
}
}
#ifdef IS_ALPHA
void OnSegfault(const CommandContext &)
{
unsigned *p = nullptr;
*p = 0xDEADBEEF;
}
void OnException(const CommandContext &)
{
// Throw an exception that can be caught only as (...)
// The intent is to exercise detection of unhandled exceptions by the
// crash reporter
struct Unique{};
throw Unique{};
}
void OnAssertion(const CommandContext &)
{
// We don't use assert() much directly, but Breakpad does detect it
// This may crash the program only in debug builds
// See also wxSetAssertHandler, and wxApp::OnAssertFailure()
assert(false);
}
#endif
void OnMenuTree(const CommandContext &context)
{
auto &project = context.project;
@ -534,15 +509,6 @@ BaseItemSharedPtr HelpMenu()
// alpha-only items don't need to internationalize, so use
// Verbatim for labels
Command( wxT("RaiseSegfault"), Verbatim("Test segfault report"),
FN(OnSegfault), AlwaysEnabledFlag ),
Command( wxT("ThrowException"), Verbatim("Test exception report"),
FN(OnException), AlwaysEnabledFlag ),
Command( wxT("ViolateAssertion"), Verbatim("Test assertion report"),
FN(OnAssertion), AlwaysEnabledFlag ),
// Menu explorer. Perhaps this should become a macro command
Command( wxT("MenuTree"), Verbatim("Menu Tree..."),
FN(OnMenuTree),