diff --git a/model/album.go b/model/album.go index b11ebdc7c..a889e06a7 100644 --- a/model/album.go +++ b/model/album.go @@ -50,7 +50,3 @@ type AlbumRepository interface { Refresh(ids ...string) error AnnotatedRepository } - -func (a Album) GetAnnotations() Annotations { - return a.Annotations -} diff --git a/model/annotation.go b/model/annotation.go index 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) error SetStar(starred bool, itemIDs ...string) error diff --git a/model/artist.go b/model/artist.go index 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.go index d6b4af14b..e8256f63e 100644 --- a/model/mediafile.go +++ b/model/mediafile.go @@ -74,7 +74,3 @@ type MediaFileRepository interface { AnnotatedRepository BookmarkableRepository } - -func (mf MediaFile) GetAnnotations() Annotations { - return mf.Annotations -}