Skip to content

Free, open-source Windows optimization tool for performance, privacy, and simplicity.

chore: remove dead HandleStartupErrorAsync duplicate

fatDuck191f63cf62b3
diff --git a/optimizerDuck/App.xaml.cs b/optimizerDuck/App.xaml.cs
index efb76c2..31ea150 100644
--- a/optimizerDuck/App.xaml.cs
+++ b/optimizerDuck/App.xaml.cs
@@ -309,32 +309,6 @@ public partial class App : Application
}
}
- private async Task HandleStartupErrorAsync(Exception ex)
- {
- LogExceptionToFile("App.Startup", ex);
-
- try
- {
- Log.Logger?.Fatal(ex, "Fatal error during startup");
- await Log.CloseAndFlushAsync();
- }
- catch
- {
- // ignore logging failures during fatal startup handling
- }
-
- Dispatcher.Invoke(() =>
- {
- System.Windows.MessageBox.Show(
- $"Failed to start optimizerDuck.{Environment.NewLine}{Environment.NewLine}{ex.Message}",
- "optimizerDuck",
- System.Windows.MessageBoxButton.OK,
- MessageBoxImage.Error
- );
- Shutdown(-1);
- });
- }
-
private async Task OnStartupAsync(StartupEventArgs e)
{
// Create the required directories if they don't exist