diff options
| author | Patrick Barron <barronpm@gmail.com> | 2021-03-06 16:17:19 -0500 |
|---|---|---|
| committer | Patrick Barron <barronpm@gmail.com> | 2021-03-06 17:37:47 -0500 |
| commit | 287dab4655176b09b0cd5b7607bfaff74e48d20d (patch) | |
| tree | 9d3b9821e6858b7772e836e3a1e7d65d2c072e45 /Jellyfin.Data/Entities/Libraries/Release.cs | |
| parent | b5e3c02865b4fc4953c317f647b7319db34922c8 (diff) | |
Remove constructor side effects and remove unneeded parameterless constructors
Diffstat (limited to 'Jellyfin.Data/Entities/Libraries/Release.cs')
| -rw-r--r-- | Jellyfin.Data/Entities/Libraries/Release.cs | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/Jellyfin.Data/Entities/Libraries/Release.cs b/Jellyfin.Data/Entities/Libraries/Release.cs index b633e08fb3..1871e0f10b 100644 --- a/Jellyfin.Data/Entities/Libraries/Release.cs +++ b/Jellyfin.Data/Entities/Libraries/Release.cs @@ -17,8 +17,7 @@ namespace Jellyfin.Data.Entities.Libraries /// Initializes a new instance of the <see cref="Release"/> class. /// </summary> /// <param name="name">The name of this release.</param> - /// <param name="owner">The owner of this release.</param> - public Release(string name, IHasReleases owner) + public Release(string name) { if (string.IsNullOrEmpty(name)) { @@ -27,23 +26,11 @@ namespace Jellyfin.Data.Entities.Libraries Name = name; - owner?.Releases.Add(this); - MediaFiles = new HashSet<MediaFile>(); Chapters = new HashSet<Chapter>(); } /// <summary> - /// Initializes a new instance of the <see cref="Release"/> class. - /// </summary> - /// <remarks> - /// Default constructor. Protected due to required properties, but present because EF needs it. - /// </remarks> - protected Release() - { - } - - /// <summary> /// Gets or sets the id. /// </summary> /// <remarks> |
