From af83b04dc7b8c05607d3263835c39fdf001649fc Mon Sep 17 00:00:00 2001 From: Bob Arnson Date: Fri, 17 Jan 2020 21:02:52 -0500 Subject: Let listeners adjust message levels; general messaging cleanup. --- src/WixToolset.Data/Message.cs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/WixToolset.Data/Message.cs b/src/WixToolset.Data/Message.cs index 6cd4105c..85a402e5 100644 --- a/src/WixToolset.Data/Message.cs +++ b/src/WixToolset.Data/Message.cs @@ -82,19 +82,6 @@ namespace WixToolset.Data /// The arguments for the format string. public object[] MessageArgs { get; } - /// - /// Makes a warning an error. - /// - public void ElevateWarningToError() - { - if (this.Level != MessageLevel.Warning) - { - throw new InvalidOperationException($"Cannot elevate {this.Level.ToString()} Message to an Error. Only Warning Messages can be elevated to an Error."); - } - - this.Level = MessageLevel.Error; - } - public override string ToString() { if (this.ResourceManager == null) -- cgit v1.2.3-55-g6feb