From 2b7abc3af5d9fb636123b734cd60dbd38448abd2 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Tue, 7 Feb 2017 23:34:52 -0500 Subject: clean up more obsolete code (#231) --- src/StardewModdingAPI/LogInfo.cs | 44 ---------------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 src/StardewModdingAPI/LogInfo.cs (limited to 'src/StardewModdingAPI/LogInfo.cs') diff --git a/src/StardewModdingAPI/LogInfo.cs b/src/StardewModdingAPI/LogInfo.cs deleted file mode 100644 index ffef7cef..00000000 --- a/src/StardewModdingAPI/LogInfo.cs +++ /dev/null @@ -1,44 +0,0 @@ -using System; - -namespace StardewModdingAPI -{ - /// A message queued for log output. - public struct LogInfo - { - /********* - ** Accessors - *********/ - /// The message to log. - public string Message { get; set; } - - /// The log date. - public string LogDate { get; set; } - - /// The log time. - public string LogTime { get; set; } - - /// The message color. - public ConsoleColor Colour { get; set; } - - /// Whether the message should be printed to the console. - internal bool PrintConsole { get; set; } - - - /********* - ** Public methods - *********/ - /// Construct an instance. - /// The message to log. - /// The message color. - public LogInfo(string message, ConsoleColor color = ConsoleColor.Gray) - { - if (string.IsNullOrEmpty(message)) - message = "[null]"; - this.Message = message; - this.LogDate = DateTime.Now.ToString("yyyy-MM-dd"); - this.LogTime = DateTime.Now.ToString("HH:mm:ss"); - this.Colour = color; - this.PrintConsole = true; - } - } -} -- cgit