Code cleanup.
This commit is contained in:
@@ -24,6 +24,10 @@ namespace Cryville.Crtr {
|
||||
SetIdle();
|
||||
}
|
||||
catch (ResultException) {
|
||||
if (dc != null) {
|
||||
dc.Dispose();
|
||||
dc = null;
|
||||
}
|
||||
Logger.Log("main", 3, "Discord", "Cannot connect to Discord");
|
||||
}
|
||||
}
|
||||
|
@@ -67,7 +67,6 @@ namespace Cryville.Crtr.Event {
|
||||
var batch = GetEventBatch();
|
||||
Time = etime;
|
||||
beat = ebeat;
|
||||
bool flag = false;
|
||||
foreach (var ev in batch) {
|
||||
EventContainer con = null;
|
||||
if (table.ContainsKey(ev)) con = table[ev].Container;
|
||||
@@ -83,9 +82,6 @@ namespace Cryville.Crtr.Event {
|
||||
sev.Origin = pev;
|
||||
}
|
||||
stampedEvents.Add(sev);
|
||||
if (ev.Priority >= 0) {
|
||||
flag = true;
|
||||
}
|
||||
if (ev is Chart.Signature) {
|
||||
var tev = (Chart.Signature)ev;
|
||||
if (tev.tempo != null) tempo = (float)tev.tempo;
|
||||
|
Reference in New Issue
Block a user