From b59baf0239cae4bfd5cf8de97c546e6d3dbae97f Mon Sep 17 00:00:00 2001 From: Marc Hernandez Date: Tue, 6 Aug 2024 12:17:24 -0700 Subject: [PATCH] Title: Refactored variable names and removed unused imports x) In `Imm.cs`, renamed the delegate parameter from `ZZOld` to `old` for clarity. x) Also in `Imm.cs`, changed the property name from `ZZOld` to `Old_backing`. This change was made across multiple classes within the file, improving code readability by using a more descriptive name. x) In `Log.cs`, removed unused imports (`System.Security.Cryptography.X509Certificates`, `System.Dynamic`, `System.Xml.Schema`, and `Microsoft.CodeAnalysis.CSharp.Syntax`) to clean up the codebase. --- imm/Imm.cs | 10 +++++----- logging/Log.cs | 4 ---- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/imm/Imm.cs b/imm/Imm.cs index bb75fe8..f26f36f 100644 --- a/imm/Imm.cs +++ b/imm/Imm.cs @@ -97,7 +97,7 @@ public record class Versioned : Imm where T : Versioned { - public delegate void ChangeDelegate( T ZZOld, T next ); + public delegate void ChangeDelegate( T old, T next ); public record class MetaData : Meta { @@ -191,8 +191,8 @@ public record class Recorded : Versioned, imm.Imm new public record class MetaData : Versioned.MetaData { [lib.Dont] - public T? ZZOld { get; internal set; } - public T? Old => ZZOld; + public T? Old_backing { get; internal set; } + public T? Old => Old_backing; public string DbgName { get; internal set; } = ""; public string DbgPath { get; internal set; } = ""; public int DbgLine { get; internal set; } = -1; @@ -271,7 +271,7 @@ public record class Recorded : Versioned, imm.Imm Version = orig.Meta.Version + 1, Reason = !string.IsNullOrWhiteSpace( reason ) ? reason : next.Meta.Reason, - ZZOld = orig, + Old_backing = orig, DbgName = dbgName, DbgPath = dbgPath, DbgLine = dbgLine, @@ -386,7 +386,7 @@ public record class Timed : Recorded, imm.Imm DbgPath = dbgPath, DbgLine = dbgLine, DbgExp = dbgExp, - ZZOld = orig, + Old_backing = orig, //Timed TouchedAt = DateTime.Now, diff --git a/logging/Log.cs b/logging/Log.cs index 3c23f28..badb3da 100644 --- a/logging/Log.cs +++ b/logging/Log.cs @@ -9,11 +9,7 @@ using System.Reflection; using System.Collections.Concurrent; using System.Linq; using System.Threading; -using System.Security.Cryptography.X509Certificates; using lib.Net; -using System.Dynamic; -using System.Xml.Schema; -using Microsoft.CodeAnalysis.CSharp.Syntax; using System.Text; //using System.Threading.Tasks;