mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #12584 from wojtek-t/remove_unsed_code
Remove dead code
This commit is contained in:
commit
f620b0d53d
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user