Browse Source

Removed unused mapping tables

JPVenson 7 months ago
parent
commit
058a567e00

+ 0 - 62
Emby.Server.Implementations/Data/ItemTypeLookup.cs

@@ -21,68 +21,6 @@ namespace Emby.Server.Implementations.Data;
 /// <inheritdoc />
 /// <inheritdoc />
 public class ItemTypeLookup : IItemTypeLookup
 public class ItemTypeLookup : IItemTypeLookup
 {
 {
-    /// <inheritdoc />
-    public IReadOnlyList<ItemFields> AllItemFields { get; } = Enum.GetValues<ItemFields>();
-
-    /// <inheritdoc />
-    public IReadOnlyList<BaseItemKind> ProgramTypes { get; } =
-    [
-            BaseItemKind.Program,
-            BaseItemKind.TvChannel,
-            BaseItemKind.LiveTvProgram,
-            BaseItemKind.LiveTvChannel
-    ];
-
-    /// <inheritdoc />
-    public IReadOnlyList<BaseItemKind> ProgramExcludeParentTypes { get; } =
-    [
-            BaseItemKind.Series,
-            BaseItemKind.Season,
-            BaseItemKind.MusicAlbum,
-            BaseItemKind.MusicArtist,
-            BaseItemKind.PhotoAlbum
-    ];
-
-    /// <inheritdoc />
-    public IReadOnlyList<BaseItemKind> ServiceTypes { get; } =
-    [
-            BaseItemKind.TvChannel,
-            BaseItemKind.LiveTvChannel
-    ];
-
-    /// <inheritdoc />
-    public IReadOnlyList<BaseItemKind> StartDateTypes { get; } =
-    [
-            BaseItemKind.Program,
-            BaseItemKind.LiveTvProgram
-    ];
-
-    /// <inheritdoc />
-    public IReadOnlyList<BaseItemKind> SeriesTypes { get; } =
-    [
-            BaseItemKind.Book,
-            BaseItemKind.AudioBook,
-            BaseItemKind.Episode,
-            BaseItemKind.Season
-    ];
-
-    /// <inheritdoc />
-    public IReadOnlyList<BaseItemKind> ArtistExcludeParentTypes { get; } =
-    [
-            BaseItemKind.Series,
-            BaseItemKind.Season,
-            BaseItemKind.PhotoAlbum
-    ];
-
-    /// <inheritdoc />
-    public IReadOnlyList<BaseItemKind> ArtistsTypes { get; } =
-    [
-            BaseItemKind.Audio,
-            BaseItemKind.MusicAlbum,
-            BaseItemKind.MusicVideo,
-            BaseItemKind.AudioBook
-    ];
-
     /// <inheritdoc />
     /// <inheritdoc />
     public IReadOnlyList<string> MusicGenreTypes => BaseItemKindNames.Where(e => e.Key is BaseItemKind.Audio or BaseItemKind.MusicVideo or BaseItemKind.MusicAlbum or BaseItemKind.MusicArtist).Select(e => e.Value).ToImmutableArray();
     public IReadOnlyList<string> MusicGenreTypes => BaseItemKindNames.Where(e => e.Key is BaseItemKind.Audio or BaseItemKind.MusicVideo or BaseItemKind.MusicAlbum or BaseItemKind.MusicArtist).Select(e => e.Value).ToImmutableArray();
 
 

+ 0 - 40
MediaBrowser.Controller/Persistence/IItemTypeLookup.cs

@@ -10,46 +10,6 @@ namespace MediaBrowser.Controller.Persistence;
 /// </summary>
 /// </summary>
 public interface IItemTypeLookup
 public interface IItemTypeLookup
 {
 {
-    /// <summary>
-    /// Gets all values of the ItemFields type.
-    /// </summary>
-    public IReadOnlyList<ItemFields> AllItemFields { get; }
-
-    /// <summary>
-    /// Gets all BaseItemKinds that are considered Programs.
-    /// </summary>
-    public IReadOnlyList<BaseItemKind> ProgramTypes { get; }
-
-    /// <summary>
-    /// Gets all BaseItemKinds that should be excluded from parent lookup.
-    /// </summary>
-    public IReadOnlyList<BaseItemKind> ProgramExcludeParentTypes { get; }
-
-    /// <summary>
-    /// Gets all BaseItemKinds that are considered to be provided by services.
-    /// </summary>
-    public IReadOnlyList<BaseItemKind> ServiceTypes { get; }
-
-    /// <summary>
-    /// Gets all BaseItemKinds that have a StartDate.
-    /// </summary>
-    public IReadOnlyList<BaseItemKind> StartDateTypes { get; }
-
-    /// <summary>
-    /// Gets all BaseItemKinds that are considered Series.
-    /// </summary>
-    public IReadOnlyList<BaseItemKind> SeriesTypes { get; }
-
-    /// <summary>
-    /// Gets all BaseItemKinds that are not to be evaluated for Artists.
-    /// </summary>
-    public IReadOnlyList<BaseItemKind> ArtistExcludeParentTypes { get; }
-
-    /// <summary>
-    /// Gets all BaseItemKinds that are considered Artists.
-    /// </summary>
-    public IReadOnlyList<BaseItemKind> ArtistsTypes { get; }
-
     /// <summary>
     /// <summary>
     /// Gets all serialisation target types for music related kinds.
     /// Gets all serialisation target types for music related kinds.
     /// </summary>
     /// </summary>