From cee74b9e31efbd264a5e63dd55b581250d2f7a94 Mon Sep 17 00:00:00 2001 From: PopSlime Date: Sat, 20 May 2023 16:31:23 +0800 Subject: [PATCH] Code cleanup. --- Assets/Cryville/Crtr/Judge.cs | 2 +- Assets/Cryville/Crtr/JudgeAction.cs | 1 - Assets/Cryville/Crtr/PdtBinder.cs | 1 - Assets/Cryville/Crtr/PropSrc.cs | 2 +- 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Assets/Cryville/Crtr/Judge.cs b/Assets/Cryville/Crtr/Judge.cs index 756172e..e87a934 100644 --- a/Assets/Cryville/Crtr/Judge.cs +++ b/Assets/Cryville/Crtr/Judge.cs @@ -112,7 +112,7 @@ namespace Cryville.Crtr { public HitOp() : base(MAX_SORTS) { } - protected unsafe override void Execute() { + protected override unsafe void Execute() { LastHit = false; for (int i = 0; i < LoadedOperandCount; i++) { var sort = GetOperand(i).AsNumber(); diff --git a/Assets/Cryville/Crtr/JudgeAction.cs b/Assets/Cryville/Crtr/JudgeAction.cs index 009b8b7..1d5db20 100644 --- a/Assets/Cryville/Crtr/JudgeAction.cs +++ b/Assets/Cryville/Crtr/JudgeAction.cs @@ -3,7 +3,6 @@ using Cryville.Common.Pdt; using System; using System.Collections.Generic; using System.Linq; -using System.Text.RegularExpressions; namespace Cryville.Crtr { public abstract class JudgeAction { diff --git a/Assets/Cryville/Crtr/PdtBinder.cs b/Assets/Cryville/Crtr/PdtBinder.cs index c3f80fd..3bc853f 100644 --- a/Assets/Cryville/Crtr/PdtBinder.cs +++ b/Assets/Cryville/Crtr/PdtBinder.cs @@ -2,7 +2,6 @@ using Cryville.Common; using Cryville.Common.Pdt; using System; using System.Globalization; -using System.Text.RegularExpressions; using SIdentifier = Cryville.Common.Identifier; namespace Cryville.Crtr { diff --git a/Assets/Cryville/Crtr/PropSrc.cs b/Assets/Cryville/Crtr/PropSrc.cs index 1c3efe8..5d3e03f 100644 --- a/Assets/Cryville/Crtr/PropSrc.cs +++ b/Assets/Cryville/Crtr/PropSrc.cs @@ -99,7 +99,7 @@ namespace Cryville.Crtr { public class Vector4 : FixedBuffer { readonly Func _cb; public Vector4(Func cb) : base(PdtInternalType.Vector, 4 * sizeof(float) + sizeof(int)) { _cb = cb; } - protected unsafe override void InternalGet() { + protected override unsafe void InternalGet() { base.InternalGet(); var vec = _cb(); fixed (byte* _ptr = buf) {