Commit 1426418a authored by Wojciech Tyczynski's avatar Wojciech Tyczynski

Remove dead code

parent 7837cf1a
...@@ -176,15 +176,6 @@ func (h *etcdHelper) Delete(key string, out runtime.Object) error { ...@@ -176,15 +176,6 @@ func (h *etcdHelper) Delete(key string, out runtime.Object) error {
} }
// Implements storage.Interface. // 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) { func (h *etcdHelper) Watch(key string, resourceVersion uint64, filter storage.FilterFunc) (watch.Interface, error) {
key = h.prefixEtcdKey(key) key = h.prefixEtcdKey(key)
w := newEtcdWatcher(false, nil, filter, h.codec, h.versioner, nil, h) w := newEtcdWatcher(false, nil, filter, h.codec, h.versioner, nil, h)
......
...@@ -92,10 +92,6 @@ type Interface interface { ...@@ -92,10 +92,6 @@ type Interface interface {
// Delete removes the specified key and returns the value that existed at that spot. // Delete removes the specified key and returns the value that existed at that spot.
Delete(key string, out runtime.Object) error 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, // Watch begins watching the specified key. Events are decoded into API objects,
// and any items passing 'filter' are sent down to returned watch.Interface. // and any items passing 'filter' are sent down to returned watch.Interface.
// resourceVersion may be used to specify what version to begin watching // resourceVersion may be used to specify what version to begin watching
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment