Skip to content
This repository was archived by the owner on Nov 29, 2018. It is now read-only.

Commit 5c18449

Browse files
hishamcoryanbrandenburg
authored andcommitted
Remove unnecessary code in ResourceManagerStringLocalizer (#300)
Remove lines from empty constructors
1 parent 63af431 commit 5c18449

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/Microsoft.Extensions.Localization/ResourceManagerStringLocalizer.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ public class ResourceManagerStringLocalizer : IStringLocalizer
2222
private readonly IResourceNamesCache _resourceNamesCache;
2323
private readonly ResourceManager _resourceManager;
2424
private readonly IResourceStringProvider _resourceStringProvider;
25-
private readonly AssemblyWrapper _resourceAssemblyWrapper;
2625
private readonly string _resourceBaseName;
2726

2827
/// <summary>
@@ -43,10 +42,6 @@ public ResourceManagerStringLocalizer(
4342
baseName,
4443
resourceNamesCache)
4544
{
46-
if (resourceAssembly == null)
47-
{
48-
throw new ArgumentNullException(nameof(resourceAssembly));
49-
}
5045
}
5146

5247
/// <summary>
@@ -63,7 +58,6 @@ public ResourceManagerStringLocalizer(
6358
baseName,
6459
resourceNamesCache)
6560
{
66-
_resourceAssemblyWrapper = resourceAssemblyWrapper;
6761
}
6862

6963
/// <summary>

0 commit comments

Comments
 (0)