cleanup: remove unused symbols (#2581)

This commit is contained in:
Doug Fawley
2019-01-17 10:14:45 -08:00
committed by GitHub
parent efaac52355
commit 9572bbe0f9
7 changed files with 2 additions and 16 deletions

View File

@ -926,9 +926,8 @@ type addrConn struct {
backoffIdx int // Needs to be stateful for resetConnectBackoff.
resetBackoff chan struct{}
channelzID int64 // channelz unique identification number.
czData *channelzData
healthCheckEnabled bool
channelzID int64 // channelz unique identification number.
czData *channelzData
}
// Note: this requires a lock on ac.mu.

View File

@ -24,11 +24,6 @@ import (
core "google.golang.org/grpc/credentials/alts/internal"
)
// cryptoTestVector is struct for a rekey test vector
type rekeyTestVector struct {
key, nonce, plaintext, ciphertext []byte
}
// getGCMCryptoPair outputs a client/server pair on aes128gcmRekey.
func getRekeyCryptoPair(key []byte, counter []byte, t *testing.T) (ALTSRecordCrypto, ALTSRecordCrypto) {
client, err := NewAES128GCMRekey(core.ClientSide, key)

View File

@ -31,7 +31,6 @@ import (
)
var (
testAppProtocols = []string{"grpc"}
testRecordProtocol = rekeyRecordProtocolName
testKey = []byte{
// 44 arbitrary bytes.

View File

@ -34,8 +34,6 @@ var (
hsDialer = grpc.Dial
)
type dialer func(target string, opts ...grpc.DialOption) (*grpc.ClientConn, error)
// Dial dials the handshake service in the hypervisor. If a connection has
// already been established, this function returns it. Otherwise, a new
// connection is created.

View File

@ -40,7 +40,6 @@ var port = flag.Int("port", 50051, "the port to serve on")
const (
timestampFormat = time.StampNano
smallDuration = time.Second
streamingCount = 10
)

View File

@ -50,9 +50,6 @@ func (s *ecServer) BidirectionalStreamingEcho(ecpb.Echo_BidirectionalStreamingEc
return status.Errorf(codes.Unimplemented, "not implemented")
}
func startServer(addr string) {
}
func main() {
lis, err := net.Listen("tcp", addr)
if err != nil {

View File

@ -1086,7 +1086,6 @@ type addrConnStream struct {
dc Decompressor
decomp encoding.Compressor
p *parser
done func(balancer.DoneInfo)
mu sync.Mutex
finished bool
}