aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJPVenson <github@jpb.email>2024-10-11 11:46:43 +0000
committerJPVenson <github@jpb.email>2024-10-11 11:46:43 +0000
commit058a567e0025d2a3086de8530be613fdf2b08c8c (patch)
tree9058d74b04647921ac32cdce723654d763cbf783
parent05ffa7b4130dd86e386714792e253262cec0dcf9 (diff)
Removed unused mapping tables
-rw-r--r--Emby.Server.Implementations/Data/ItemTypeLookup.cs62
-rw-r--r--MediaBrowser.Controller/Persistence/IItemTypeLookup.cs40
2 files changed, 0 insertions, 102 deletions
diff --git a/Emby.Server.Implementations/Data/ItemTypeLookup.cs b/Emby.Server.Implementations/Data/ItemTypeLookup.cs
index dc55211d8..5504012bf 100644
--- a/Emby.Server.Implementations/Data/ItemTypeLookup.cs
+++ b/Emby.Server.Implementations/Data/ItemTypeLookup.cs
@@ -22,68 +22,6 @@ namespace Emby.Server.Implementations.Data;
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 />
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();
/// <inheritdoc />
diff --git a/MediaBrowser.Controller/Persistence/IItemTypeLookup.cs b/MediaBrowser.Controller/Persistence/IItemTypeLookup.cs
index 343b95e9e..d2c6ff365 100644
--- a/MediaBrowser.Controller/Persistence/IItemTypeLookup.cs
+++ b/MediaBrowser.Controller/Persistence/IItemTypeLookup.cs
@@ -11,46 +11,6 @@ namespace MediaBrowser.Controller.Persistence;
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>
/// Gets all serialisation target types for music related kinds.
/// </summary>
IReadOnlyList<string> MusicGenreTypes { get; }