From bd1a1128d83350e336289c0f776a0a5e03a085b5 Mon Sep 17 00:00:00 2001 From: filifa Date: Wed, 10 Jul 2024 23:58:07 -0500 Subject: [PATCH] remove timestamp method --- internal/statsapi/patch.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/internal/statsapi/patch.go b/internal/statsapi/patch.go index fa0495c..50d1a58 100644 --- a/internal/statsapi/patch.go +++ b/internal/statsapi/patch.go @@ -1,9 +1,5 @@ package statsapi -import ( - "errors" -) - type DiffPatchParams struct { GamePk string StartTimecode string @@ -22,13 +18,3 @@ type instruction struct { Value any From string } - -func (p *Patch) Timestamp() (string, error) { - for _, d := range p.Diff { - if d.Op == "replace" && d.Path == "/metaData/timeStamp" { - return d.Value.(string), nil - } - } - - return "", errors.New("could not find replacement timestamp") -}