移除不必要函式

This commit is contained in:
jasonchenwork 2025-04-10 14:48:37 +08:00
parent 780d851647
commit 7e1c471ee6

View File

@ -8,7 +8,7 @@ namespace DualScreenDemo
public class CommandHandler public class CommandHandler
{ {
public static bool readyForSongListInput = false; public static bool readyForSongListInput = false;
private readonly int _maxHistoryLength = 6; // 最多保留 100 private readonly int _maxHistoryLength = 6; // 最多保留 6
private readonly Queue<string> _indataHistory = new Queue<string>(); private readonly Queue<string> _indataHistory = new Queue<string>();
private readonly SongListManager songListManager; private readonly SongListManager songListManager;
@ -891,20 +891,6 @@ private static void DisplaySongHistory()
} }
} }
public static bool CheckLogForShutdown(string filePath)
{
if (File.Exists(filePath))
{
string content = File.ReadAllText(filePath).Replace(Environment.NewLine, "");
if (content.Length >= 6 && content.Substring(content.Length - 6) == "bbbaaa")
{
return true;
}
}
return false;
}
public static void ShutdownComputer() public static void ShutdownComputer()
{ {
try try