Skip to content

Commit

Permalink
Fix code analysis warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
jhett12321 committed Jan 19, 2025
1 parent 0bc2a65 commit 7169520
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 7 deletions.
1 change: 0 additions & 1 deletion NWN.Anvil/src/main/API/Color.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using Newtonsoft.Json;
using NWN.Native.API;
using NWNX.NET.Native;

namespace Anvil.API
Expand Down
1 change: 0 additions & 1 deletion NWN.Anvil/src/main/API/EngineStructures/EngineStructure.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using NWN.Core;
using NWNX.NET;

namespace Anvil.API
Expand Down
1 change: 0 additions & 1 deletion NWN.Anvil/src/main/API/Extensions/IntegerExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using Anvil.Internal;
using Anvil.Native;
using NWN.Core;
using NWN.Native.API;

Expand Down
3 changes: 1 addition & 2 deletions NWN.Anvil/src/main/API/Objects/NwModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using Anvil.Internal;
using Anvil.Native;
using NWN.Core;
using NWN.Native.API;

Expand Down Expand Up @@ -131,7 +130,7 @@ public int MaxHenchmen
/// <summary>
/// Gets the current player count.
/// </summary>
public int PlayerCount => LowLevel.ServerExoApp.m_pcExoAppInternal.m_lstPlayerList.Count();
public int PlayerCount => LowLevel.ServerExoApp.m_pcExoAppInternal.m_lstPlayerList.Count;

/// <summary>
/// Gets all current online players.
Expand Down
2 changes: 1 addition & 1 deletion NWN.Anvil/src/main/API/Ruleset/NwBaseItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ internal NwBaseItem(uint baseItemId, CNWBaseItem baseItemInfo)
/// Gets the ResRef of the item's model, or the base part of the resref.<br/>
/// This property is dependent on <see cref="ModelType"/>. See https://nwn.wiki/display/NWN1/baseitems.2da for more info.
/// </summary>
public unsafe string? ItemClass
public string ItemClass
{
get
{
Expand Down
1 change: 0 additions & 1 deletion NWN.Anvil/src/main/Services/Core/EncodingService.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using System.Text;
using Anvil.Internal;
using NWN.Core;
using NWNX.NET.Native;

namespace Anvil.Services
Expand Down

0 comments on commit 7169520

Please sign in to comment.