Skip to content

Commit

Permalink
asserts: remove unused function
Browse files Browse the repository at this point in the history
this was flagged by deadcode/unused.

there is no obvious future use case for this anymore so I'm removing it
but this will not always be clear cut with header_checks.go functions
which is a growing helper library
  • Loading branch information
pedronis committed Feb 11, 2022
1 parent 984e5be commit 50d83b8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions asserts/header_checks.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,6 @@ func checkRFC3339DateWhat(m map[string]interface{}, name, what string) (time.Tim
return date, nil
}

func checkRFC3339DateWithDefault(headers map[string]interface{}, name string, defl time.Time) (time.Time, error) {
return checkRFC3339DateWithDefaultWhat(headers, name, "header", defl)
}

func checkRFC3339DateWithDefaultWhat(m map[string]interface{}, name, what string, defl time.Time) (time.Time, error) {
value, ok := m[name]
if !ok {
Expand Down

0 comments on commit 50d83b8

Please sign in to comment.