Core(MtProtoSender): remove mutation-based dangerous API

It wasn't being used internally, and the use-case to be used
externally is too intricated. There's already a way to change
the handler at contructor time[1] so that should be enough
customization.

[1] 48077961ae
This commit is contained in:
Andres G. Aragoneses 2018-03-05 03:53:11 +08:00
parent 3762664c14
commit e6250b1234

View file

@ -29,11 +29,6 @@ namespace TLSharp.Core.Network
_session = session; _session = session;
} }
public void ChangeTransport(TcpTransport transport)
{
_transport = transport;
}
private int GenerateSequence(bool confirmed) private int GenerateSequence(bool confirmed)
{ {
return confirmed ? _session.Sequence++ * 2 + 1 : _session.Sequence * 2; return confirmed ? _session.Sequence++ * 2 + 1 : _session.Sequence * 2;