From 3ea726a0302c7efee75f43887acb16316efc3adc Mon Sep 17 00:00:00 2001 From: lash Date: Sat, 11 Jan 2025 21:13:03 +0000 Subject: [PATCH] Remove out-of-context profile struct --- models/profile.go | 18 ------------------ remote/http/service.go | 1 + 2 files changed, 1 insertion(+), 18 deletions(-) delete mode 100644 models/profile.go diff --git a/models/profile.go b/models/profile.go deleted file mode 100644 index d698318..0000000 --- a/models/profile.go +++ /dev/null @@ -1,18 +0,0 @@ -package models - -type Profile struct { - ProfileItems []string - Max int -} - -func (p *Profile) InsertOrShift(index int, value string) { - if index < len(p.ProfileItems) { - p.ProfileItems = append(p.ProfileItems[:index], value) - } else { - for len(p.ProfileItems) < index { - p.ProfileItems = append(p.ProfileItems, "0") - } - p.ProfileItems = append(p.ProfileItems, "0") - p.ProfileItems[index] = value - } -} diff --git a/remote/http/service.go b/remote/http/service.go index eb67105..9abf677 100644 --- a/remote/http/service.go +++ b/remote/http/service.go @@ -219,6 +219,7 @@ func (as *HTTPAccountService) CheckAliasAddress(ctx context.Context, alias strin return &r, err } +// TODO: remove eth-custodial api dependency func doRequest(ctx context.Context, req *http.Request, rcpt any) (*api.OKResponse, error) { var okResponse api.OKResponse var errResponse api.ErrResponse