mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 09:49:50 +00:00
clean unused function
This commit is contained in:
parent
c861ceb41a
commit
4db1cc03ba
@ -234,15 +234,6 @@ func rpad(s string, padding int) string {
|
|||||||
return fmt.Sprintf(template, s)
|
return fmt.Sprintf(template, s)
|
||||||
}
|
}
|
||||||
|
|
||||||
func indentLines(s string, indentation int) string {
|
|
||||||
r := []string{}
|
|
||||||
for _, line := range strings.Split(s, "\n") {
|
|
||||||
indented := strings.Repeat(" ", indentation) + line
|
|
||||||
r = append(r, indented)
|
|
||||||
}
|
|
||||||
return strings.Join(r, "\n")
|
|
||||||
}
|
|
||||||
|
|
||||||
func appendIfNotPresent(s, stringToAppend string) string {
|
func appendIfNotPresent(s, stringToAppend string) string {
|
||||||
if strings.Contains(s, stringToAppend) {
|
if strings.Contains(s, stringToAppend) {
|
||||||
return s
|
return s
|
||||||
|
Loading…
Reference in New Issue
Block a user