Remove unused AnnotatedModel interface

This commit is contained in:
Deluan 2021-08-01 11:12:32 -04:00
parent c831dc4cdf
commit aa1571e074
4 changed files with 0 additions and 16 deletions

View File

@ -50,7 +50,3 @@ type AlbumRepository interface {
Refresh(ids ...string) error
AnnotatedRepository
}
func (a Album) GetAnnotations() Annotations {
return a.Annotations
}

View File

@ -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

View File

@ -53,7 +53,3 @@ type ArtistRepository interface {
GetIndex() (ArtistIndexes, error)
AnnotatedRepository
}
func (a Artist) GetAnnotations() Annotations {
return a.Annotations
}

View File

@ -74,7 +74,3 @@ type MediaFileRepository interface {
AnnotatedRepository
BookmarkableRepository
}
func (mf MediaFile) GetAnnotations() Annotations {
return mf.Annotations
}