From 8e50dd79915d15471b17c9fda777eccb15e2e775 Mon Sep 17 00:00:00 2001 From: ds5678 <49847914+ds5678@users.noreply.github.com> Date: Sun, 1 Jun 2025 13:58:40 -0700 Subject: [PATCH] Remove ShallowClone method --- ICSharpCode.Decompiler/DecompilerSettings.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ICSharpCode.Decompiler/DecompilerSettings.cs b/ICSharpCode.Decompiler/DecompilerSettings.cs index ae314aacf..6c57402e4 100644 --- a/ICSharpCode.Decompiler/DecompilerSettings.cs +++ b/ICSharpCode.Decompiler/DecompilerSettings.cs @@ -2238,11 +2238,9 @@ namespace ICSharpCode.Decompiler } } - protected virtual DecompilerSettings ShallowClone() => this with { }; - public DecompilerSettings DeepClone() { - DecompilerSettings settings = ShallowClone(); + DecompilerSettings settings = this with { }; if (csharpFormattingOptions != null) settings.csharpFormattingOptions = csharpFormattingOptions.Clone(); settings.PropertyChanged = null;