File tree Expand file tree Collapse file tree 5 files changed +0
-24
lines changed Expand file tree Collapse file tree 5 files changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -39,11 +39,6 @@ func (g *dummyDataGatherer) WaitForCacheSync(ctx context.Context) error {
39
39
return nil
40
40
}
41
41
42
- func (g * dummyDataGatherer ) Delete () error {
43
- // no async functionality, see Fetch
44
- return nil
45
- }
46
-
47
42
func (c * dummyDataGatherer ) Fetch () (interface {}, int , error ) {
48
43
var err error
49
44
if c .attemptNumber < c .FailedAttempts {
Original file line number Diff line number Diff line change @@ -20,6 +20,4 @@ type DataGatherer interface {
20
20
Run (ctx context.Context ) error
21
21
// WaitForCacheSync waits for the data gatherer's informers cache to sync.
22
22
WaitForCacheSync (ctx context.Context ) error
23
- // Delete, clear the cache of the DataGatherer if one is being used
24
- Delete () error
25
23
}
Original file line number Diff line number Diff line change @@ -57,11 +57,6 @@ func (g *DataGathererDiscovery) WaitForCacheSync(ctx context.Context) error {
57
57
return nil
58
58
}
59
59
60
- func (g * DataGathererDiscovery ) Delete () error {
61
- // no async functionality, see Fetch
62
- return nil
63
- }
64
-
65
60
// Fetch will fetch discovery data from the apiserver, or return an error
66
61
func (g * DataGathererDiscovery ) Fetch () (interface {}, int , error ) {
67
62
data , err := g .cl .ServerVersion ()
Original file line number Diff line number Diff line change @@ -307,13 +307,6 @@ func (g *DataGathererDynamic) WaitForCacheSync(ctx context.Context) error {
307
307
return nil
308
308
}
309
309
310
- // Delete will flush the cache being used to stored resources gathered by the
311
- // informer
312
- func (g * DataGathererDynamic ) Delete () error {
313
- g .cache .Flush ()
314
- return nil
315
- }
316
-
317
310
// Fetch will fetch the requested data from the apiserver, or return an error
318
311
// if fetching the data fails.
319
312
func (g * DataGathererDynamic ) Fetch () (interface {}, int , error ) {
Original file line number Diff line number Diff line change @@ -43,11 +43,6 @@ func (g *DataGatherer) Run(ctx context.Context) error {
43
43
return nil
44
44
}
45
45
46
- func (g * DataGatherer ) Delete () error {
47
- // no async functionality, see Fetch
48
- return nil
49
- }
50
-
51
46
func (g * DataGatherer ) WaitForCacheSync (ctx context.Context ) error {
52
47
// no async functionality, see Fetch
53
48
return nil
You can’t perform that action at this time.
0 commit comments