From 7790e98f47a3f1ab8088ad5573604b1ff47fe4c1 Mon Sep 17 00:00:00 2001 From: erik Date: Tue, 14 Nov 2023 14:53:47 +0100 Subject: [PATCH] Remove unused funcs and structs --- modules/forgefed/star.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/modules/forgefed/star.go b/modules/forgefed/star.go index 7444e32de4..886965f975 100644 --- a/modules/forgefed/star.go +++ b/modules/forgefed/star.go @@ -4,7 +4,6 @@ package forgefed import ( - "code.gitea.io/gitea/modules/context" ap "github.com/go-ap/activitypub" "github.com/valyala/fastjson" ) @@ -36,24 +35,13 @@ type Star struct { Source SourceType `jsonld:"source,omitempty"` } -// Infos needed to star a repo -type StarRepo struct { - StargazerID int `json:"Stargazer"` - RepoID int `json:"RepoToStar"` -} - // StarNew initializes a Star type activity -// Guess: no return value needed, we may need to add the star to the context func StarNew(id ap.ID, ob ap.ID) *Star { a := ap.ActivityNew(id, StarType, ob) o := Star{Activity: *a, Source: ForgejoSourceType} return &o } -func AddStar(ctx *context.APIContext) { - -} - func (a Star) MarshalJSON() ([]byte, error) { b := make([]byte, 0) ap.JSONWrite(&b, '{')