aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Data/Entities/Libraries/CustomItemMetadata.cs
diff options
context:
space:
mode:
authorPatrick Barron <barronpm@gmail.com>2021-03-06 16:17:19 -0500
committerPatrick Barron <barronpm@gmail.com>2021-03-06 17:37:47 -0500
commit287dab4655176b09b0cd5b7607bfaff74e48d20d (patch)
tree9d3b9821e6858b7772e836e3a1e7d65d2c072e45 /Jellyfin.Data/Entities/Libraries/CustomItemMetadata.cs
parentb5e3c02865b4fc4953c317f647b7319db34922c8 (diff)
Remove constructor side effects and remove unneeded parameterless constructors
Diffstat (limited to 'Jellyfin.Data/Entities/Libraries/CustomItemMetadata.cs')
-rw-r--r--Jellyfin.Data/Entities/Libraries/CustomItemMetadata.cs19
1 files changed, 1 insertions, 18 deletions
diff --git a/Jellyfin.Data/Entities/Libraries/CustomItemMetadata.cs b/Jellyfin.Data/Entities/Libraries/CustomItemMetadata.cs
index f0daedfbe8..a69a8eafa4 100644
--- a/Jellyfin.Data/Entities/Libraries/CustomItemMetadata.cs
+++ b/Jellyfin.Data/Entities/Libraries/CustomItemMetadata.cs
@@ -12,24 +12,7 @@ namespace Jellyfin.Data.Entities.Libraries
/// </summary>
/// <param name="title">The title or name of the object.</param>
/// <param name="language">ISO-639-3 3-character language codes.</param>
- /// <param name="item">The item.</param>
- public CustomItemMetadata(string title, string language, CustomItem item) : base(title, language)
- {
- if (item == null)
- {
- throw new ArgumentNullException(nameof(item));
- }
-
- item.CustomItemMetadata.Add(this);
- }
-
- /// <summary>
- /// Initializes a new instance of the <see cref="CustomItemMetadata"/> class.
- /// </summary>
- /// <remarks>
- /// Default constructor. Protected due to required properties, but present because EF needs it.
- /// </remarks>
- protected CustomItemMetadata()
+ public CustomItemMetadata(string title, string language) : base(title, language)
{
}
}