Code cleanup.

This commit is contained in:
2022-11-21 18:16:12 +08:00
parent 145c0ce6c8
commit e5d6e549bd
8 changed files with 9 additions and 15 deletions

View File

@@ -19,9 +19,7 @@ namespace Cryville.Common.Network {
set { throw new NotSupportedException(); }
}
public override void Flush() {
// Do nothing
}
public override void Flush() { }
public abstract byte[] ReadToEnd();

View File

@@ -92,9 +92,7 @@ namespace Cryville.Common.Network {
return null;
}
public void NotifyServerCertificate(TlsServerCertificate serverCertificate) {
// Do nothing
}
public void NotifyServerCertificate(TlsServerCertificate serverCertificate) { }
}
}
}

View File

@@ -11,8 +11,7 @@ namespace Cryville.Common.Unity.Input {
typeof(UnityMouseHandler),
typeof(UnityTouchHandler),
};
// TODO set private
public readonly List<InputHandler> _handlers = new List<InputHandler>();
readonly List<InputHandler> _handlers = new List<InputHandler>();
readonly Dictionary<Type, InputHandler> _typemap = new Dictionary<Type, InputHandler>();
readonly Dictionary<InputHandler, double> _timeOrigins = new Dictionary<InputHandler, double>();
readonly object _lock = new object();