tmdb: Remove olf *WithWatched structs

These are not used and are a remnant from before the server restructure (it was another solution i was cooking up, but didn't end up going with).
This commit is contained in:
IRHM
2026-08-02 22:43:47 +01:00
committed by momi
parent 7b65c8af0f
commit dc2b9a1a63
2 changed files with 0 additions and 31 deletions
-28
View File
@@ -5,7 +5,6 @@ import (
"strings"
"time"
"github.com/sbondCo/Watcharr/database/entity"
"github.com/sbondCo/Watcharr/domain"
"github.com/sbondCo/Watcharr/util"
)
@@ -127,15 +126,6 @@ func (t *SearchMultiResult) AsMedia() domain.Media {
return m
}
type SearchMultiResponseWithWatched struct {
SearchResponse[SearchMultiResultWithWatched]
}
type SearchMultiResultWithWatched struct {
SearchMultiResult
Watched *entity.Watched `json:"watched,omitempty"`
}
//
// Movie Search
//
@@ -168,15 +158,6 @@ func (t *SearchMovieResult) AsMedia() domain.Media {
return m
}
type SearchMoviesResponseWithWatched struct {
SearchResponse[SearchMovieResultWithWatched]
}
type SearchMovieResultWithWatched struct {
SearchMovieResult
Watched *entity.Watched `json:"watched,omitempty"`
}
//
// Tv Shows Search
//
@@ -209,15 +190,6 @@ func (t *SearchShowsResult) AsMedia() domain.Media {
return m
}
type SearchShowsResponseWithWatched struct {
SearchResponse[SearchShowsResultWithWatched]
}
type SearchShowsResultWithWatched struct {
SearchShowsResult
Watched *entity.Watched `json:"watched,omitempty"`
}
//
// People Search
//
-3
View File
@@ -13,9 +13,6 @@ import (
"github.com/sbondCo/Watcharr/database/entity"
)
// TODO The *WithWatched structs likely need to go in the watched package (or with go 1.25 can we
// fix needing so many extra structs for the *WithWatched types and functions)
var ContentStore = gocache.New(time.Hour*24, time.Minute)
type ContentProvider interface {