🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
Remove unused AnnotatedModel interface
Deluanaa1571e074f9
diff --git a/model/album.go b/model/album.goindex b11ebdc7c..a889e06a7 100644--- a/model/album.go+++ b/model/album.go@@ -50,7 +50,3 @@ type AlbumRepository interface {Refresh(ids ...string) errorAnnotatedRepository}--func (a Album) GetAnnotations() Annotations {- return a.Annotations-}diff --git a/model/annotation.go b/model/annotation.goindex c9fd40f53..b470da2a5 100644--- a/model/annotation.go+++ b/model/annotation.go@@ -10,10 +10,6 @@ type Annotations struct {StarredAt time.Time `structs:"-" json:"starredAt"`}-type AnnotatedModel interface {- GetAnnotations() Annotations-}-type AnnotatedRepository interface {IncPlayCount(itemID string, ts time.Time) errorSetStar(starred bool, itemIDs ...string) errordiff --git a/model/artist.go b/model/artist.goindex 38322f163..715c2ecf1 100644--- a/model/artist.go+++ b/model/artist.go@@ -53,7 +53,3 @@ type ArtistRepository interface {GetIndex() (ArtistIndexes, error)AnnotatedRepository}--func (a Artist) GetAnnotations() Annotations {- return a.Annotations-}diff --git a/model/mediafile.go b/model/mediafile.goindex d6b4af14b..e8256f63e 100644--- a/model/mediafile.go+++ b/model/mediafile.go@@ -74,7 +74,3 @@ type MediaFileRepository interface {AnnotatedRepositoryBookmarkableRepository}--func (mf MediaFile) GetAnnotations() Annotations {- return mf.Annotations-}