mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-08 22:59:29 -04:00
Remove unused HeartBeatFail event
This commit is contained in:
parent
0e7505cb17
commit
728ca427d0
@ -97,7 +97,6 @@ namespace MCGalaxy.Gui {
|
||||
Server s = new Server();
|
||||
Logger.LogHandler += LogMessage;
|
||||
|
||||
Server.HeartBeatFail += HeartBeatFail;
|
||||
Server.OnURLChange += UpdateUrl;
|
||||
Server.OnPlayerListChange += UpdateClientList;
|
||||
Server.OnSettingsUpdate += SettingsUpdate;
|
||||
@ -182,10 +181,6 @@ namespace MCGalaxy.Gui {
|
||||
}
|
||||
}
|
||||
|
||||
void HeartBeatFail() {
|
||||
WriteLine("Recent Heartbeat Failed");
|
||||
}
|
||||
|
||||
delegate void LogDelegate(string message);
|
||||
|
||||
/// <summary> Does the same as Console.WriteLine() only in the form </summary>
|
||||
|
@ -31,11 +31,9 @@ namespace MCGalaxy {
|
||||
|
||||
public delegate void OnConsoleCommand(string cmd, string message);
|
||||
public static event OnConsoleCommand ConsoleCommand;
|
||||
public delegate void HeartBeatHandler();
|
||||
public delegate void MessageEventHandler(string message);
|
||||
public delegate void VoidHandler();
|
||||
|
||||
public static event HeartBeatHandler HeartBeatFail;
|
||||
public static event MessageEventHandler OnURLChange;
|
||||
public static event VoidHandler OnPlayerListChange;
|
||||
public static event VoidHandler OnSettingsUpdate;
|
||||
|
@ -257,10 +257,6 @@ namespace MCGalaxy {
|
||||
if (OnPlayerListChange != null) OnPlayerListChange();
|
||||
}
|
||||
|
||||
public static void FailBeat() {
|
||||
if (HeartBeatFail != null) HeartBeatFail();
|
||||
}
|
||||
|
||||
public static void UpdateUrl(string url) {
|
||||
if (OnURLChange != null) OnURLChange(url);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user