移除不必要函式
This commit is contained in:
parent
780d851647
commit
7e1c471ee6
@ -8,7 +8,7 @@ namespace DualScreenDemo
|
||||
public class CommandHandler
|
||||
{
|
||||
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 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()
|
||||
{
|
||||
try
|
||||
|
Loading…
x
Reference in New Issue
Block a user