Skip to content

Commit 9c55e8d

Browse files
committed
Cleanup code
1 parent 848ae52 commit 9c55e8d

File tree

3 files changed

+0
-36
lines changed

3 files changed

+0
-36
lines changed

IPConfig/Extensions/DeepCloneExtensions.cs

Lines changed: 0 additions & 33 deletions
This file was deleted.

IPConfig/Models/IPConfigModel.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ namespace IPConfig.Models;
1616

1717
/// <summary>
1818
/// 表示一个 IP 配置。
19-
/// <para>MVVM Toolkit 源生成器暂不支持 <seealso cref="JsonIgnoreAttribute"/> 等其他特性,可以使用传统的完整属性(SetProperty)代替。</para>
2019
/// </summary>
2120
public partial class IPConfigModel : ObservableValidator, IDeepCloneable<IPConfigModel>, IDeepCloneTo<IPConfigModel>
2221
{

IPConfig/ViewModels/IPConfigListViewModel.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,6 @@ where match.Success
419419

420420
int order = FileOrderHelper.GetOrder(orders);
421421
var copy = original.DeepClone();
422-
// Order 属性被标记为 [JsonIgnore],需要手动赋值。
423-
copy.Order = original.Order;
424422
copy.Name = $"{Lang.Copy_Noun}{order}-{original.Name}";
425423
copy.BeginEdit();
426424
InsertNewIPConfig(copy);

0 commit comments

Comments
 (0)