Commit 4db1cc03 authored by WanLinghao's avatar WanLinghao

clean unused function

parent c861ceb4
...@@ -234,15 +234,6 @@ func rpad(s string, padding int) string { ...@@ -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
......
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