Skip to content

Commit

Permalink
drop Go versions prior to 1.7 in CI
Browse files Browse the repository at this point in the history
* drop Go versions prior to 1.7 in CI

* consolidate conn*.go files after dropping old Go support
  • Loading branch information
adamdecaf authored and garyburd committed Aug 22, 2018
1 parent 3ff3320 commit 5fb9417
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 42 deletions.
3 changes: 0 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ sudo: false

matrix:
include:
- go: 1.4
- go: 1.5.x
- go: 1.6.x
- go: 1.7.x
- go: 1.8.x
- go: 1.9.x
Expand Down
9 changes: 9 additions & 0 deletions conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,15 @@ func (c *Conn) writeFatal(err error) error {
return err
}

func (c *Conn) read(n int) ([]byte, error) {
p, err := c.br.Peek(n)
if err == io.EOF {
err = errUnexpectedEOF
}
c.br.Discard(len(p))
return p, err
}

func (c *Conn) write(frameType int, deadline time.Time, buf0, buf1 []byte) error {
<-c.mu
defer func() { c.mu <- true }()
Expand Down
18 changes: 0 additions & 18 deletions conn_read.go

This file was deleted.

21 changes: 0 additions & 21 deletions conn_read_legacy.go

This file was deleted.

0 comments on commit 5fb9417

Please sign in to comment.