Fix IDE0062: Make local function static

This commit is contained in:
Haselnussbomber 2025-10-24 03:19:14 +02:00
parent ff751e50ac
commit 7d94098ba3
No known key found for this signature in database
GPG key ID: BB905BB49E7295D1
6 changed files with 7 additions and 7 deletions

View file

@ -419,7 +419,7 @@ internal unsafe class NetworkHandlers : IInternalDisposableService
private IDisposable HandleMarketBoardItemRequest()
{
void LogStartObserved(MarketBoardItemRequest request)
static void LogStartObserved(MarketBoardItemRequest request)
{
Log.Verbose("Observed start of request for item with {NumListings} expected listings", request.AmountToArrive);
}

View file

@ -816,7 +816,7 @@ internal class DalamudInterface : IInternalDisposableService
if (ImGui.MenuItem("Cause CLR fastfail"u8))
{
unsafe void CauseFastFail()
static unsafe void CauseFastFail()
{
// ReSharper disable once NotAccessedVariable
var texture = Unsafe.AsRef<AtkTexture>((void*)0x12345678);

View file

@ -63,7 +63,7 @@ internal sealed unsafe partial class ReShadeAddonInterface
return;
bool GetProcAddressInto(ProcessModule m, ReadOnlySpan<char> name, void* res)
static bool GetProcAddressInto(ProcessModule m, ReadOnlySpan<char> name, void* res)
{
Span<byte> name8 = stackalloc byte[Encoding.UTF8.GetByteCount(name) + 1];
name8[Encoding.UTF8.GetBytes(name, name8)] = 0;

View file

@ -338,7 +338,7 @@ internal class GamePrebakedFontsTestWidget : IDataWindowWidget, IDisposable
return;
void TestSingle(ImFontPtr fontPtr, IFontHandle handle)
static void TestSingle(ImFontPtr fontPtr, IFontHandle handle)
{
var dim = ImGui.CalcTextSizeA(fontPtr, fontPtr.FontSize, float.MaxValue, 0f, "Test string"u8, out _);
Log.Information($"{nameof(GamePrebakedFontsTestWidget)}: {handle} => {dim}");

View file

@ -291,7 +291,7 @@ internal static class ServiceManager
await loadingDialog.HideAndJoin();
return;
async Task WaitWithTimeoutConsent(IEnumerable<Task> tasksEnumerable, LoadingDialog.State state)
static async Task WaitWithTimeoutConsent(IEnumerable<Task> tasksEnumerable, LoadingDialog.State state)
{
loadingDialog.CurrentState = state;
var tasks = tasksEnumerable.AsReadOnlyCollection();

View file

@ -1,4 +1,4 @@
using System.Globalization;
using System.Globalization;
namespace Dalamud.Utility;
@ -22,7 +22,7 @@ internal static class CultureFixes
// This glyph is not present in any game fonts and not in the range for our Noto
// so it will be rendered as a geta (=) instead. That's a hack, but it works and
// doesn't look as weird.
CultureInfo PatchCulture(CultureInfo info)
static CultureInfo PatchCulture(CultureInfo info)
{
var newCulture = (CultureInfo)info.Clone();