From 50d83b8790de859a3b47aa1b7df78be43d683407 Mon Sep 17 00:00:00 2001 From: Samuele Pedroni Date: Fri, 11 Feb 2022 16:20:39 +0100 Subject: [PATCH] asserts: remove unused function 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 --- asserts/header_checks.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/asserts/header_checks.go b/asserts/header_checks.go index 0c600ac068e..ae4e68fafd3 100644 --- a/asserts/header_checks.go +++ b/asserts/header_checks.go @@ -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 {