Skip to content

Commit

Permalink
Remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
Lorenz Kästle committed Apr 5, 2024
1 parent db3858c commit be77a06
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,6 @@ import (
"github.com/gin-gonic/gin"
)

func printItemList(c *gin.Context, items []item) {
for _, item := range items {
value := item.Value
if strings.Contains(item.Name, "pwd") || strings.Contains(item.Name, "pass") {
value = strings.Repeat("-", len(value)) + " (hidden)"
}
if item.Index == 0 {
_log(c, " - %v = %v\n", item.Name, value)
} else {
_log(c, " - %v[%v] = %v\n", item.Name, item.Index, value)
}
}
}

func itemsFromFile(c *gin.Context, confFile string) []item {
conf, err := os.ReadFile(confFile)
if err != nil {
Expand Down

0 comments on commit be77a06

Please sign in to comment.