mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Fix IDE0062: Make local function static
This commit is contained in:
parent
ff751e50ac
commit
7d94098ba3
6 changed files with 7 additions and 7 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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}");
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue