From 4f47c387ca73824545d522038913c976ec5fdb36 Mon Sep 17 00:00:00 2001 From: noClaps Date: Thu, 25 Sep 2025 21:42:55 +0100 Subject: [PATCH] knotserver/git: removed unused TagReference struct Signed-off-by: noClaps --- knotserver/git/git.go | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/knotserver/git/git.go b/knotserver/git/git.go index f8503fdc..60613b83 100644 --- a/knotserver/git/git.go +++ b/knotserver/git/git.go @@ -27,14 +27,6 @@ type GitRepo struct { h plumbing.Hash } -// TagReference is used to list both tag and non-annotated tags. -// Non-annotated tags should only contains a reference. -// Annotated tags should contain its reference and its tag information. -type TagReference struct { - ref *plumbing.Reference - tag *object.Tag -} - // infoWrapper wraps the property of a TreeEntry so it can export fs.FileInfo // to tar WriteHeader type infoWrapper struct { @@ -367,22 +359,3 @@ func (i *infoWrapper) IsDir() bool { func (i *infoWrapper) Sys() any { return nil } - -func (t *TagReference) Name() string { - return t.ref.Name().Short() -} - -func (t *TagReference) Message() string { - if t.tag != nil { - return t.tag.Message - } - return "" -} - -func (t *TagReference) TagObject() *object.Tag { - return t.tag -} - -func (t *TagReference) Hash() plumbing.Hash { - return t.ref.Hash() -} -- 2.51.2