Skip to content

Commit 9e369bc

Browse files
committed
refactor(ProtoBufSerializerHelper): 移除未使用的Register方法
清理不再使用的类型注册方法以简化代码结构
1 parent cc100c4 commit 9e369bc

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

GameFrameX.ProtoBuf.Net/ProtoBufSerializerHelper.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,6 @@ public static byte[] Serialize<T>(T value)
2323
}
2424
}
2525

26-
/// <summary>
27-
/// 注册类型
28-
/// </summary>
29-
/// <param name="type"></param>
30-
public static void Register(Type type)
31-
{
32-
RuntimeTypeModel.Default.Add(type, false);
33-
}
34-
3526
/// <summary>
3627
/// 反序列化数据对象
3728
/// </summary>

0 commit comments

Comments
 (0)