Remove unused variables from catch

This commit is contained in:
Xjph 2023-03-01 16:31:18 -03:30
commit 5bbf2f50de
2 changed files with 2 additions and 2 deletions

View file

@ -116,7 +116,7 @@ namespace Observatory.PluginManagement
{
timer.Start();
}
catch (ObjectDisposedException ode)
catch
{
// Not sure why this happens, but I've reproduced it twice in a row after hitting
// read-all while also playing (ie. generating journals).

View file

@ -232,7 +232,7 @@ namespace Observatory.UI.Views
// Cleanup
XFixesDestroyRegion((IntPtr)display, region);
}
catch (DllNotFoundException ignored)
catch
{
// libXfixes is not installed for some reason
}