refactor: Remove unused _fs fields

pull/113/head
Robert Dailey 3 years ago
parent 6400716150
commit 635e93b2db

@ -6,13 +6,11 @@ namespace TrashLib.Repo;
public class RepoPathsFactory : IRepoPathsFactory public class RepoPathsFactory : IRepoPathsFactory
{ {
private readonly IAppPaths _paths; private readonly IAppPaths _paths;
private readonly IFileSystem _fs;
private readonly Lazy<RepoMetadata> _metadata; private readonly Lazy<RepoMetadata> _metadata;
public RepoPathsFactory(IRepoMetadataParser parser, IAppPaths paths, IFileSystem fs) public RepoPathsFactory(IRepoMetadataParser parser, IAppPaths paths)
{ {
_paths = paths; _paths = paths;
_fs = fs;
_metadata = new Lazy<RepoMetadata>(parser.Deserialize); _metadata = new Lazy<RepoMetadata>(parser.Deserialize);
} }

@ -12,14 +12,12 @@ public class LocalRepoReleaseProfileJsonParser : ISonarrGuideService
{ {
private readonly IRepoPathsFactory _pathFactory; private readonly IRepoPathsFactory _pathFactory;
private readonly ILogger _log; private readonly ILogger _log;
private readonly IFileSystem _fs;
private readonly Lazy<IEnumerable<ReleaseProfileData>> _data; private readonly Lazy<IEnumerable<ReleaseProfileData>> _data;
public LocalRepoReleaseProfileJsonParser(IRepoPathsFactory pathFactory, ILogger log, IFileSystem fs) public LocalRepoReleaseProfileJsonParser(IRepoPathsFactory pathFactory, ILogger log)
{ {
_pathFactory = pathFactory; _pathFactory = pathFactory;
_log = log; _log = log;
_fs = fs;
_data = new Lazy<IEnumerable<ReleaseProfileData>>(GetReleaseProfileDataImpl); _data = new Lazy<IEnumerable<ReleaseProfileData>>(GetReleaseProfileDataImpl);
} }

Loading…
Cancel
Save