From 0e12bd327e88ce8762124325462798dde3071700 Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Sun, 7 Sep 2025 05:14:47 +0000 Subject: [PATCH] fix(store/s3api): remove vestigal experiment Signed-off-by: Xe Iaso --- lib/store/s3api/s3api.go | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/lib/store/s3api/s3api.go b/lib/store/s3api/s3api.go index 66cb6ceb..04c85304 100644 --- a/lib/store/s3api/s3api.go +++ b/lib/store/s3api/s3api.go @@ -6,11 +6,10 @@ import ( "fmt" "io" "strconv" - "time" "strings" + "time" "github.com/TecharoHQ/anubis/lib/store" - "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/s3" ) @@ -19,21 +18,6 @@ type Store struct { bucket string } -// staticProvider is a minimal aws.CredentialsProvider implementation to avoid -// pulling a separate credentials module. -type staticProvider struct { - akid string - secret string -} - -func (p staticProvider) Retrieve(ctx context.Context) (aws.Credentials, error) { - return aws.Credentials{ - AccessKeyID: p.akid, - SecretAccessKey: p.secret, - Source: "static", - }, nil -} - func (s *Store) Delete(ctx context.Context, key string) error { normKey := strings.ReplaceAll(key, ":", "/") // Emulate not found by probing first.