Remove duplicated def of IsEtcdNodeExist

This commit is contained in:
Kouhei Ueno 2014-08-06 03:45:50 +09:00
parent c7947abd9c
commit c1ec1d6d72

View File

@ -88,11 +88,6 @@ func IsEtcdNotFound(err error) bool {
return isEtcdErrorNum(err, EtcdErrorCodeNotFound)
}
// Returns true iff err is an etcd key node exists error.
func IsEtcdNodeExist(err error) bool {
return isEtcdErrorNum(err, EtcdErrorCodeNodeExist)
}
// IsEtcdTestFailed returns true iff err is an etcd write conflict.
func IsEtcdTestFailed(err error) bool {
return isEtcdErrorNum(err, EtcdErrorCodeTestFailed)