Cleanup unused functions.

This commit is contained in:
2022-11-21 12:14:34 +08:00
parent 321af22775
commit 77d6ac2caf

View File

@@ -57,17 +57,6 @@ namespace Cryville.Crtr {
unsafe void LoadNum(float value) { unsafe void LoadNum(float value) {
fixed (byte* ptr = _numbuf) *(float*)ptr = value; fixed (byte* ptr = _numbuf) *(float*)ptr = value;
} }
unsafe byte[] GetBytes(string value) {
int strlen = value.Length;
byte[] result = new byte[strlen * sizeof(char) + sizeof(int)];
fixed (byte* _ptr = result) {
char* ptr = (char*)(_ptr + sizeof(int));
*(int*)_ptr = strlen;
int i = 0;
foreach (var c in value) ptr[i++] = c;
}
return result;
}
static readonly int _op_sep = IdentifierManager.SharedInstance.Request(","); static readonly int _op_sep = IdentifierManager.SharedInstance.Request(",");
static readonly int _func_int_map = IdentifierManager.SharedInstance.Request("int_map"); static readonly int _func_int_map = IdentifierManager.SharedInstance.Request("int_map");
protected override PdtOperator GetOperator(PdtOperatorSignature sig) { protected override PdtOperator GetOperator(PdtOperatorSignature sig) {