From 63ffb75f4e5d6c64bbefa13346e4e465ff465e83 Mon Sep 17 00:00:00 2001 From: Seongmin Lee Date: Fri, 14 Nov 2025 16:43:46 +0900 Subject: [PATCH] appview/db: remove unused struct Change-Id: wmxvskmzyuxpnvwrtzplxsznuvpyvxox Signed-off-by: Seongmin Lee --- appview/db/repos.go | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/appview/db/repos.go b/appview/db/repos.go index 7fdc87c7..3c418943 100644 --- a/appview/db/repos.go +++ b/appview/db/repos.go @@ -10,37 +10,9 @@ import ( "time" "github.com/bluesky-social/indigo/atproto/syntax" - securejoin "github.com/cyphar/filepath-securejoin" - "tangled.org/core/api/tangled" "tangled.org/core/appview/models" ) -type Repo struct { - Id int64 - Did string - Name string - Knot string - Rkey string - Created time.Time - Description string - Spindle string - - // optionally, populate this when querying for reverse mappings - RepoStats *models.RepoStats - - // optional - Source string -} - -func (r Repo) RepoAt() syntax.ATURI { - return syntax.ATURI(fmt.Sprintf("at://%s/%s/%s", r.Did, tangled.RepoNSID, r.Rkey)) -} - -func (r Repo) DidSlashRepo() string { - p, _ := securejoin.SecureJoin(r.Did, r.Name) - return p -} - func GetRepos(e Execer, limit int, filters ...filter) ([]models.Repo, error) { repoMap := make(map[syntax.ATURI]*models.Repo) -- 2.43.0