mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
error: remove unused Message func
This commit is contained in:
parent
e01ae2c083
commit
b9544d32b6
@ -129,10 +129,6 @@ func NewError(errorCode int, cause string, index uint64) *Error {
|
||||
}
|
||||
}
|
||||
|
||||
func Message(code int) string {
|
||||
return errors[code]
|
||||
}
|
||||
|
||||
// Only for error interface
|
||||
func (e Error) Error() string {
|
||||
return e.Message + " (" + e.Cause + ")"
|
||||
|
Loading…
x
Reference in New Issue
Block a user