Skip to content

Commit

Permalink
remove unused arguments (#334)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Wilson <[email protected]>
  • Loading branch information
partiusfabaa and roflmuffin authored Mar 8, 2024
1 parent 0de951c commit cba5144
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions managed/CounterStrikeSharp.API/CompatibilitySuppressions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,12 @@
<Left>.\ApiCompat\v151.dll</Left>
<Right>obj\Debug\net7.0\CounterStrikeSharp.API.dll</Right>
</Suppression>
<Suppression>
<DiagnosticId>CP0002</DiagnosticId>
<Target>M:CounterStrikeSharp.API.Core.Translations.JsonStringLocalizerFactory.#ctor(CounterStrikeSharp.API.Core.Plugin.IPluginContext)</Target>
<Left>.\ApiCompat\v151.dll</Left>
<Right>obj\Debug\net7.0\CounterStrikeSharp.API.dll</Right>
</Suppression>
<Suppression>
<DiagnosticId>CP0006</DiagnosticId>
<Target>M:CounterStrikeSharp.API.Core.IPlugin.OnAllPluginsLoaded(System.Boolean)</Target>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public T GetParam<T>(int index)
return NativeAPI.DynamicHookGetParam<T>(Handle, (int)typeof(T).ToValidDataType(), index);
}

public T GetReturn<T>(int index)
public T GetReturn<T>()
{
return NativeAPI.DynamicHookGetReturn<T>(Handle, (int)typeof(T).ToValidDataType());
}
Expand Down

0 comments on commit cba5144

Please sign in to comment.