Skip to content

Commit

Permalink
all: eliminate unexported dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
zombiezen committed Sep 5, 2016
1 parent 3207911 commit fdd7ab3
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 12 deletions.
1 change: 0 additions & 1 deletion capn.go
Original file line number Diff line number Diff line change
Expand Up @@ -521,5 +521,4 @@ var (
errCopyDepth = errors.New("capnp: copy depth too large")
errOverlap = errors.New("capnp: overlapping data on copy")
errListSize = errors.New("capnp: invalid list size")
errObjectType = errors.New("capnp: invalid object type")
)
5 changes: 0 additions & 5 deletions capnpc-go/capnpc-go_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -456,11 +456,6 @@ func containsExactlyIDs(nodes []*node, ids ...uint64) bool {
return true
}

func nodeString(n *node) string {
str, _ := text.Marshal(0xe682ab4cf923a417, n.Struct)
return str
}

func nodeListString(n []*node) string {
b := new(bytes.Buffer)
e := text.NewEncoder(b)
Expand Down
3 changes: 0 additions & 3 deletions mem.go
Original file line number Diff line number Diff line change
Expand Up @@ -745,15 +745,12 @@ func isInt32Bit() bool {
}

var (
errBufferCall = errors.New("capnp: can't call on a memory buffer")
errSegmentOutOfBounds = errors.New("capnp: segment ID out of bounds")
errSegment32Bit = errors.New("capnp: segment ID larger than 31 bits")
errMessageEmpty = errors.New("capnp: marshalling an empty message")
errHasData = errors.New("capnp: NewMessage called on arena with data")
errTooMuchData = errors.New("capnp: too much data in stream")
errSegmentTooSmall = errors.New("capnp: segment too small")
errSegmentTooLarge = errors.New("capnp: segment too large")
errStreamHeader = errors.New("capnp: invalid stream header")
errTooManySegments = errors.New("capnp: too many segments to decode")
errDecodeLimit = errors.New("capnp: message too large")
)
1 change: 0 additions & 1 deletion rpc/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ var (
errNoMainInterface = errors.New("rpc: no bootstrap interface")
errBadTarget = errors.New("rpc: target not found")
errShutdown = errors.New("rpc: shutdown")
errCallCanceled = errors.New("rpc: call canceled")
errUnimplemented = errors.New("rpc: remote used unimplemented protocol feature")
)

Expand Down
3 changes: 1 addition & 2 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,7 @@ type callOptionKey int

// Predefined call options
const (
invalidOptionKey callOptionKey = iota
ackSignalKey
ackSignalKey callOptionKey = iota + 1
)

var errClosed = errors.New("capnp: server closed")

0 comments on commit fdd7ab3

Please sign in to comment.