From 6baea3f8f379a8a21728c02e3974428ae51348bc Mon Sep 17 00:00:00 2001 From: Koichi Shiraishi Date: Sat, 30 Jan 2021 18:21:41 +0900 Subject: [PATCH] internal/jsonrpc2: remove unused invalidID constant Change-Id: If00f4459be3176a44f7654bb304e03d9d6b393c2 Reviewed-on: https://go-review.googlesource.com/c/tools/+/288273 Reviewed-by: Rebecca Stambler Trust: Rebecca Stambler Trust: Robert Findley Run-TryBot: Rebecca Stambler gopls-CI: kokoro TryBot-Result: Go Bot --- internal/jsonrpc2/wire.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/internal/jsonrpc2/wire.go b/internal/jsonrpc2/wire.go index 6593023593..d805f57937 100644 --- a/internal/jsonrpc2/wire.go +++ b/internal/jsonrpc2/wire.go @@ -7,7 +7,6 @@ package jsonrpc2 import ( "encoding/json" "fmt" - "math" ) // this file contains the go forms of the wire specification @@ -122,8 +121,6 @@ func (wireVersionTag) UnmarshalJSON(data []byte) error { return nil } -const invalidID int64 = math.MaxInt64 - // NewIntID returns a new numerical request ID. func NewIntID(v int64) ID { return ID{number: v} }