Remove unused AnnotatedModel interface
This commit is contained in:
@@ -50,7 +50,3 @@ type AlbumRepository interface {
|
|||||||
Refresh(ids ...string) error
|
Refresh(ids ...string) error
|
||||||
AnnotatedRepository
|
AnnotatedRepository
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a Album) GetAnnotations() Annotations {
|
|
||||||
return a.Annotations
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -10,10 +10,6 @@ type Annotations struct {
|
|||||||
StarredAt time.Time `structs:"-" json:"starredAt"`
|
StarredAt time.Time `structs:"-" json:"starredAt"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type AnnotatedModel interface {
|
|
||||||
GetAnnotations() Annotations
|
|
||||||
}
|
|
||||||
|
|
||||||
type AnnotatedRepository interface {
|
type AnnotatedRepository interface {
|
||||||
IncPlayCount(itemID string, ts time.Time) error
|
IncPlayCount(itemID string, ts time.Time) error
|
||||||
SetStar(starred bool, itemIDs ...string) error
|
SetStar(starred bool, itemIDs ...string) error
|
||||||
|
|||||||
@@ -53,7 +53,3 @@ type ArtistRepository interface {
|
|||||||
GetIndex() (ArtistIndexes, error)
|
GetIndex() (ArtistIndexes, error)
|
||||||
AnnotatedRepository
|
AnnotatedRepository
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a Artist) GetAnnotations() Annotations {
|
|
||||||
return a.Annotations
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -74,7 +74,3 @@ type MediaFileRepository interface {
|
|||||||
AnnotatedRepository
|
AnnotatedRepository
|
||||||
BookmarkableRepository
|
BookmarkableRepository
|
||||||
}
|
}
|
||||||
|
|
||||||
func (mf MediaFile) GetAnnotations() Annotations {
|
|
||||||
return mf.Annotations
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user