From 969151e1b8c7b8d0781e281fc6e2c19310e28125 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Thu, 2 Dec 2021 22:23:31 +0200 Subject: [PATCH] source/fake: drop stale Configure() method Also correct some comments. --- source/fake/fake.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/source/fake/fake.go b/source/fake/fake.go index edab2f549..1bd30e2aa 100644 --- a/source/fake/fake.go +++ b/source/fake/fake.go @@ -55,13 +55,13 @@ var ( // Name returns an identifier string for this feature source. func (s *fakeSource) Name() string { return Name } -// NewConfig method of the LabelSource interface +// NewConfig method of the ConfigurableSource interface func (s *fakeSource) NewConfig() source.Config { return newDefaultConfig() } -// GetConfig method of the LabelSource interface +// GetConfig method of the ConfigurableSource interface func (s *fakeSource) GetConfig() source.Config { return s.config } -// SetConfig method of the LabelSource interface +// SetConfig method of the ConfigurableSource interface func (s *fakeSource) SetConfig(conf source.Config) { switch v := conf.(type) { case *Config: @@ -71,9 +71,6 @@ func (s *fakeSource) SetConfig(conf source.Config) { } } -// Configure method of the LabelSource interface -func (s *fakeSource) Configure([]byte) error { return nil } - // Priority method of the LabelSource interface func (s *fakeSource) Priority() int { return 0 }