mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
Merge pull request #64593 from WanLinghao/unused_function_clean
Automatic merge from submit-queue (batch tested with PRs 64593, 65117, 65629, 65827, 65686). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. clean unused function in file pkg/volume/projected/projected.go **What this PR does / why we need it**: It was imported by https://github.com/kubernetes/kubernetes/pull/37237 And it is unusable at first place when it was imported **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes # **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
This commit is contained in:
commit
76ce56168e
@ -18,8 +18,6 @@ package projected
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"sort"
|
|
||||||
"strings"
|
|
||||||
|
|
||||||
authenticationv1 "k8s.io/api/authentication/v1"
|
authenticationv1 "k8s.io/api/authentication/v1"
|
||||||
"k8s.io/api/core/v1"
|
"k8s.io/api/core/v1"
|
||||||
@ -335,12 +333,6 @@ func (s *projectedVolumeMounter) collectData() (map[string]volumeutil.FileProjec
|
|||||||
return payload, utilerrors.NewAggregate(errlist)
|
return payload, utilerrors.NewAggregate(errlist)
|
||||||
}
|
}
|
||||||
|
|
||||||
func sortLines(values string) string {
|
|
||||||
splitted := strings.Split(values, "\n")
|
|
||||||
sort.Strings(splitted)
|
|
||||||
return strings.Join(splitted, "\n")
|
|
||||||
}
|
|
||||||
|
|
||||||
type projectedVolumeUnmounter struct {
|
type projectedVolumeUnmounter struct {
|
||||||
*projectedVolume
|
*projectedVolume
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user