Merge pull request #12584 from wojtek-t/remove_unsed_code

Remove dead code
This commit is contained in:
Piotr Szczesniak 2015-08-12 15:36:33 +02:00
commit f620b0d53d
2 changed files with 0 additions and 13 deletions

View File

@ -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)

View File

@ -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