Unverified Commit 76ce5616 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

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 ```
parents 01624c1b f7e46cf7
...@@ -18,8 +18,6 @@ package projected ...@@ -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 ...@@ -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
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment