Skip to content

Commit

Permalink
Simplify unused out param and fix unreachable code warning
Browse files Browse the repository at this point in the history
  • Loading branch information
TiKevin83 committed Aug 20, 2023
1 parent a1f41d7 commit c8c593a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/BizHawk.BizInvoke/BizExvoker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public DelegateStorage(Type type)

foreach (var (Info, Attr) in methods)
{
var delegateType = BizInvokeUtilities.CreateDelegateType(Info, Attr!.CallingConvention, typeBuilder, out MethodBuilder unused).CreateType()!;
var delegateType = BizInvokeUtilities.CreateDelegateType(Info, Attr!.CallingConvention, typeBuilder, out _).CreateType()!;
DelegateTypes.Add(new StoredDelegateInfo(Info, delegateType, Attr.EntryPoint ?? Info.Name));
}
StorageType = typeBuilder.CreateType()!;
Expand Down
2 changes: 1 addition & 1 deletion src/BizHawk.Emulation.Cores/Consoles/Nintendo/3DS/Citra.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ public Citra(CoreLoadParameters<CitraSettings, CitraSyncSettings> lp)
_supportsOpenGL43 = _openGLProvider.SupportsGLVersion(4, 3);
if (!_supportsOpenGL43/* && _syncSettings.GraphicsApi == CitraSyncSettings.EGraphicsApi.OpenGL*/)
{
throw new("OpenGL 4.3 is required, but it is not supported on this machine");
lp.Comm.Notify("OpenGL 4.3 is not supported on this machine, falling back to software renderer", null);
throw new("OpenGL 4.3 is required, but it is not supported on this machine");
}

_glCallbackInterface.RequestGLContext = RequestGLContextCallback;
Expand Down

0 comments on commit c8c593a

Please sign in to comment.