From aca3d73f8ce8cf46a80cb098589627a6b412aae1 Mon Sep 17 00:00:00 2001 From: GrĂ©goire DuchĂȘne Date: Sat, 3 Dec 2022 21:31:28 +0000 Subject: Remove redundant ParseString --- flag.go | 5 ----- 1 file changed, 5 deletions(-) (limited to 'flag.go') diff --git a/flag.go b/flag.go index 018540a..adc88f3 100644 --- a/flag.go +++ b/flag.go @@ -108,11 +108,6 @@ func InitFlagSet(fs *flag.FlagSet, env []string, cfg map[string]string, args []s return err } -// ParseString returns the string passed with no error set. -func ParseString(s string) (string, error) { - return s, nil -} - // ParseTime parses a string according to the time.RFC3339 format. func ParseTime(s string) (time.Time, error) { return time.Parse(time.RFC3339, s) -- cgit v1.2.3-70-g09d2