Skip to content

Commit 649523c

Browse files
committed
cleanup: remove useless methods
`BuildArgs` is not used anywhere and the `args` can be directly got from the instance instead of defining a method to do that. Signed-off-by: Dave Chen <[email protected]>
1 parent 0891f69 commit 649523c

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

pkg/scheduler/framework/plugins/interpodaffinity/plugin.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,6 @@ func (pl *InterPodAffinity) Name() string {
4646
return Name
4747
}
4848

49-
// BuildArgs returns the args that were used to build the plugin.
50-
func (pl *InterPodAffinity) BuildArgs() interface{} {
51-
return pl.args
52-
}
53-
5449
// New initializes a new plugin and returns it.
5550
func New(plArgs runtime.Object, h framework.FrameworkHandle) (framework.Plugin, error) {
5651
if h.SnapshotSharedLister() == nil {

pkg/scheduler/framework/plugins/podtopologyspread/plugin.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,6 @@ func (pl *PodTopologySpread) Name() string {
5858
return Name
5959
}
6060

61-
// BuildArgs returns the arguments used to build the plugin.
62-
func (pl *PodTopologySpread) BuildArgs() interface{} {
63-
return pl.args
64-
}
65-
6661
// New initializes a new plugin and returns it.
6762
func New(plArgs runtime.Object, h framework.FrameworkHandle) (framework.Plugin, error) {
6863
if h.SnapshotSharedLister() == nil {

0 commit comments

Comments
 (0)