From 27e4da68c00e02e008f2b2a708bafc3b3fa583e5 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Fri, 15 Nov 2019 12:11:46 +0100 Subject: [PATCH] cmd/utils: remove unused functions prefixedNames, prefixFor --- cmd/utils/customflags.go | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/cmd/utils/customflags.go b/cmd/utils/customflags.go index 66ebf9ab04..17dcba5f74 100644 --- a/cmd/utils/customflags.go +++ b/cmd/utils/customflags.go @@ -185,28 +185,6 @@ func GlobalBig(ctx *cli.Context, name string) *big.Int { return (*big.Int)(val.(*bigValue)) } -func prefixFor(name string) (prefix string) { - if len(name) == 1 { - prefix = "-" - } else { - prefix = "--" - } - - return -} - -func prefixedNames(fullName string) (prefixed string) { - parts := strings.Split(fullName, ",") - for i, name := range parts { - name = strings.Trim(name, " ") - prefixed += prefixFor(name) + name - if i < len(parts)-1 { - prefixed += ", " - } - } - return -} - // Expands a file path // 1. replace tilde with users home dir // 2. expands embedded environment variables