Skip to content

Commit 7ecf916

Browse files
committed
style: Removed compiler pragmas without justification
1 parent 030871b commit 7ecf916

File tree

7 files changed

+3
-20
lines changed

7 files changed

+3
-20
lines changed

MLAPI/Data/AttributeMessageMode.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ public enum HashSize
2929

3030
namespace MLAPI
3131
{
32-
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
3332
public delegate void RpcDelegate(uint clientId, Stream stream);
3433

3534
internal class ReflectionMethod
@@ -92,6 +91,4 @@ public class ClientRPC : Attribute
9291
internal ReflectionMethod reflectionMethod;
9392
internal RpcDelegate rpcDelegate;
9493
}
95-
96-
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member
9794
}

MLAPI/Data/MLAPIConstants.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
/// </summary>
66
public static class MLAPIConstants
77
{
8-
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
98
public const string MLAPI_PROTOCOL_VERSION = "6.0.1";
109

1110
public const byte MLAPI_CERTIFICATE_HAIL = 0;
@@ -66,6 +65,5 @@ public static class MLAPIConstants
6665
"",
6766
"INVALID" // 32
6867
};
69-
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member
7068
}
7169
}

MLAPI/MonoBehaviours/Prototyping/NetworkedAnimator.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,13 @@ public class NetworkedAnimator : NetworkedBehaviour
3535
private float sendTimer;
3636

3737

38-
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
3938
// tracking - these should probably move to a Preview component. -- Comment from HLAPI. Needs clarification
4039
public string param0;
4140
public string param1;
4241
public string param2;
4342
public string param3;
4443
public string param4;
4544
public string param5;
46-
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member
4745

4846
/// <summary>
4947
/// Gets or sets the animator component used for syncing the animations
@@ -100,10 +98,8 @@ private void FixedUpdate()
10098

10199
CheckSendRate();
102100

103-
#pragma warning disable IDE0018 // Inline variable declaration, Unity's Mono version doesn't support it
104101
int stateHash;
105102
float normalizedTime;
106-
#pragma warning restore IDE0018 // Inline variable declaration, Unity's Mono version doesn't support it
107103
if (!CheckAnimStateChanged(out stateHash, out normalizedTime))
108104
{
109105
return;

MLAPI/NetworkingManagerComponents/Binary/Arithmetic.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
2-
namespace MLAPI.Serialization
1+
namespace MLAPI.Serialization
32
{
43
public static class Arithmetic
54
{
@@ -51,4 +50,3 @@ public static int VarIntSize(ulong value) =>
5150
internal static long Div8Ceil(ulong value) => (long)((value >> 3) + ((value & 1UL) | ((value >> 1) & 1UL) | ((value >> 2) & 1UL)));
5251
}
5352
}
54-
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member

MLAPI/NetworkingManagerComponents/Binary/BinaryHelpers.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
2-
namespace MLAPI.Serialization
1+
namespace MLAPI.Serialization
32
{
43
public static class BinaryHelpers
54
{
@@ -15,5 +14,4 @@ public static ulong SwapEndian(ulong value) =>
1514
((value << 24) & (0xFFUL << 40)) |
1615
((value << 8) & (0xFFUL << 32)) ;
1716
}
18-
}
19-
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member
17+
}

MLAPI/NetworkingManagerComponents/Binary/BitReader.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,6 @@ public ulong ReadUInt64Packed()
539539
return res;
540540
}
541541

542-
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
543542
// Read arrays
544543
public StringBuilder ReadString(bool oneByteChars) => ReadString(null, oneByteChars);
545544
public StringBuilder ReadString(StringBuilder builder = null, bool oneByteChars = false)
@@ -1321,6 +1320,5 @@ public double[] ReadDoubleArrayPackedDiff(double[] readTo = null, long knownLeng
13211320
bitSource.BitPosition = data;
13221321
return writeTo;
13231322
}
1324-
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member
13251323
}
13261324
}

MLAPI/NetworkingManagerComponents/Core/LogHelper.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace MLAPI.Logging
44
{
5-
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
65
public enum LogLevel
76
{
87
Developer,
@@ -28,5 +27,4 @@ public static LogLevel CurrentLogLevel
2827
public static void LogWarning(string message) => Debug.LogWarning("[MLAPI] " + message);
2928
public static void LogError(string message) => Debug.LogError("[MLAPI] " + message);
3029
}
31-
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member
3230
}

0 commit comments

Comments
 (0)