Skip to content

Commit

Permalink
Remove unused AnnotatedModel interface
Browse files Browse the repository at this point in the history
  • Loading branch information
deluan committed Aug 1, 2021
1 parent c831dc4 commit aa1571e
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 16 deletions.
4 changes: 0 additions & 4 deletions model/album.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,3 @@ type AlbumRepository interface {
Refresh(ids ...string) error
AnnotatedRepository
}

func (a Album) GetAnnotations() Annotations {
return a.Annotations
}
4 changes: 0 additions & 4 deletions model/annotation.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions model/artist.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,3 @@ type ArtistRepository interface {
GetIndex() (ArtistIndexes, error)
AnnotatedRepository
}

func (a Artist) GetAnnotations() Annotations {
return a.Annotations
}
4 changes: 0 additions & 4 deletions model/mediafile.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,3 @@ type MediaFileRepository interface {
AnnotatedRepository
BookmarkableRepository
}

func (mf MediaFile) GetAnnotations() Annotations {
return mf.Annotations
}

0 comments on commit aa1571e

Please sign in to comment.