Commit f7e46cf7 authored by WanLinghao's avatar WanLinghao

clean unused function in file pkg/volume/projected/projected.go

parent d5bada21
...@@ -18,8 +18,6 @@ package projected ...@@ -18,8 +18,6 @@ package projected
import ( import (
"fmt" "fmt"
"sort"
"strings"
"github.com/golang/glog" "github.com/golang/glog"
"k8s.io/api/core/v1" "k8s.io/api/core/v1"
...@@ -300,12 +298,6 @@ func (s *projectedVolumeMounter) collectData() (map[string]volumeutil.FileProjec ...@@ -300,12 +298,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