From 1426418af2ec1660c168cb7532825f894e34fed8 Mon Sep 17 00:00:00 2001 From: Wojciech Tyczynski Date: Wed, 12 Aug 2015 14:57:35 +0200 Subject: [PATCH] Remove dead code --- pkg/storage/etcd/etcd_helper.go | 9 --------- pkg/storage/interfaces.go | 4 ---- 2 files changed, 13 deletions(-) diff --git a/pkg/storage/etcd/etcd_helper.go b/pkg/storage/etcd/etcd_helper.go index 5688b9f0fe4..09efa9819c1 100644 --- a/pkg/storage/etcd/etcd_helper.go +++ b/pkg/storage/etcd/etcd_helper.go @@ -175,15 +175,6 @@ func (h *etcdHelper) Delete(key string, out runtime.Object) error { return err } -// Implements storage.Interface. -func (h *etcdHelper) RecursiveDelete(key string, recursive bool) error { - key = h.prefixEtcdKey(key) - startTime := time.Now() - _, err := h.client.Delete(key, recursive) - metrics.RecordEtcdRequestLatency("delete", "UNKNOWN", startTime) - return err -} - // Implements storage.Interface. func (h *etcdHelper) Watch(key string, resourceVersion uint64, filter storage.FilterFunc) (watch.Interface, error) { key = h.prefixEtcdKey(key) diff --git a/pkg/storage/interfaces.go b/pkg/storage/interfaces.go index 0a043573760..3ba685ab57e 100644 --- a/pkg/storage/interfaces.go +++ b/pkg/storage/interfaces.go @@ -92,10 +92,6 @@ type Interface interface { // Delete removes the specified key and returns the value that existed at that spot. Delete(key string, out runtime.Object) error - // RecursiveDelete removes the specified key. - // TODO: Get rid of this method and use Delete() instead. - RecursiveDelete(key string, recursive bool) error - // Watch begins watching the specified key. Events are decoded into API objects, // and any items passing 'filter' are sent down to returned watch.Interface. // resourceVersion may be used to specify what version to begin watching