Fix IDE0062: Make local function static

This commit is contained in:
Haselnussbomber 2025-10-24 03:19:14 +02:00
parent 8b873c9fb0
commit a5496eab8a
No known key found for this signature in database
GPG key ID: BB905BB49E7295D1
5 changed files with 6 additions and 6 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

@ -912,7 +912,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

@ -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();