1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-04-30 07:39:42 +02:00

Merge pull request from juozaspo/cleanup

Remove crash reporting menu items from the help menu

Signed-off-by: Emily Mabrey<emabrey@tenacityaudio.org>
Reference-to: https://github.com/tenacityteam/tenacity/pull/583
This commit is contained in:
Emily Mabrey 2021-09-05 01:22:47 -04:00 committed by GitHub
commit 03c5f07c58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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),