Remove unused AnnotatedModel interface
This commit is contained in:
@@ -50,7 +50,3 @@ type AlbumRepository interface {
|
||||
Refresh(ids ...string) error
|
||||
AnnotatedRepository
|
||||
}
|
||||
|
||||
func (a Album) GetAnnotations() Annotations {
|
||||
return a.Annotations
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -53,7 +53,3 @@ type ArtistRepository interface {
|
||||
GetIndex() (ArtistIndexes, error)
|
||||
AnnotatedRepository
|
||||
}
|
||||
|
||||
func (a Artist) GetAnnotations() Annotations {
|
||||
return a.Annotations
|
||||
}
|
||||
|
||||
@@ -74,7 +74,3 @@ type MediaFileRepository interface {
|
||||
AnnotatedRepository
|
||||
BookmarkableRepository
|
||||
}
|
||||
|
||||
func (mf MediaFile) GetAnnotations() Annotations {
|
||||
return mf.Annotations
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user