From c1ec1d6d72f9e99b09f9cbb279a2615846008651 Mon Sep 17 00:00:00 2001 From: Kouhei Ueno Date: Wed, 6 Aug 2014 03:45:50 +0900 Subject: [PATCH] Remove duplicated def of IsEtcdNodeExist --- pkg/tools/etcd_tools.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pkg/tools/etcd_tools.go b/pkg/tools/etcd_tools.go index e101cf2bf42..2307c1f3476 100644 --- a/pkg/tools/etcd_tools.go +++ b/pkg/tools/etcd_tools.go @@ -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)