From dffe8dbb3f477a274df43d9b56e78021d92f3d6d Mon Sep 17 00:00:00 2001 From: Rory& Date: Thu, 22 May 2025 17:20:13 +0200 Subject: Clean up some debug code in policy events --- .../Spec/State/Policy/PolicyRuleStateEventContent.cs | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'LibMatrix.EventTypes/Spec') diff --git a/LibMatrix.EventTypes/Spec/State/Policy/PolicyRuleStateEventContent.cs b/LibMatrix.EventTypes/Spec/State/Policy/PolicyRuleStateEventContent.cs index 949e733..a68de8d 100644 --- a/LibMatrix.EventTypes/Spec/State/Policy/PolicyRuleStateEventContent.cs +++ b/LibMatrix.EventTypes/Spec/State/Policy/PolicyRuleStateEventContent.cs @@ -35,7 +35,6 @@ public class RoomPolicyRuleEventContent : PolicyRuleEventContent { [DebuggerDisplay("""{GetType().Name.Replace("PolicyRuleEventContent", ""),nq} policy matching {Entity}, Reason: {Reason}""")] public abstract class PolicyRuleEventContent : EventContent { // public PolicyRuleEventContent() => Console.WriteLine($"init policy {GetType().Name}"); - private string? _reason; /// /// Entity this ban applies to, can use * and ? as globs. @@ -52,17 +51,7 @@ public abstract class PolicyRuleEventContent : EventContent { /// [JsonPropertyName("reason")] [FriendlyName(Name = "Reason")] - public virtual string? Reason { - get => - // Console.WriteLine($"Read policy reason: {_reason}"); - _reason; - set => - // Console.WriteLine($"Set policy reason: {value}"); - // if(init) - // Console.WriteLine(string.Join('\n', Environment.StackTrace.Split('\n')[..5])); - // init = true; - _reason = value; - } + public string? Reason { get; set; } /// /// Suggested action to take -- cgit 1.5.1