remove unused StreamCallback

This commit is contained in:
Marten Seemann
2017-02-17 16:01:30 +07:00
parent 5029ab0934
commit 824f122a79
7 changed files with 13 additions and 43 deletions

View File

@@ -208,7 +208,7 @@ func (c *Client) handlePacket(packet []byte) error {
func (c *Client) createNewSession(negotiatedVersions []protocol.VersionNumber) error {
var err error
c.session, err = newClientSession(c.conn, c.addr, c.hostname, c.version, c.connectionID, c.tlsConfig, c.streamCallback, c.closeCallback, c.cryptoChangeCallback, negotiatedVersions)
c.session, err = newClientSession(c.conn, c.addr, c.hostname, c.version, c.connectionID, c.tlsConfig, c.closeCallback, c.cryptoChangeCallback, negotiatedVersions)
if err != nil {
return err
}
@@ -217,8 +217,6 @@ func (c *Client) createNewSession(negotiatedVersions []protocol.VersionNumber) e
return nil
}
func (c *Client) streamCallback(Session, utils.Stream) {}
func (c *Client) closeCallback(id protocol.ConnectionID) {
utils.Infof("Connection %x closed.", id)
}