mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-25 14:11:48 +01:00
Fix IDE0062: Make local function static
This commit is contained in:
parent
8b873c9fb0
commit
a5496eab8a
5 changed files with 6 additions and 6 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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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