remove unused newStreamImpl from Session

This commit is contained in:
Marten Seemann
2017-01-06 13:15:07 +07:00
parent d0198c698a
commit 563c56fa74
2 changed files with 2 additions and 6 deletions

View File

@@ -629,10 +629,6 @@ func (s *Session) OpenStream(id protocol.StreamID) (utils.Stream, error) {
return s.streamsMap.OpenStream(id)
}
func (s *Session) newStreamImpl(id protocol.StreamID) (*stream, error) {
return s.streamsMap.GetOrOpenStream(id)
}
func (s *Session) newStream(id protocol.StreamID) (*stream, error) {
stream, err := newStream(id, s.scheduleSending, s.flowControlManager)
if err != nil {