mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
removed dead code.
This commit is contained in:
parent
3d71c129eb
commit
0794affae0
13 changed files with 5 additions and 126 deletions
|
@ -9,10 +9,8 @@ namespace NzbDrone.Core.MediaFiles
|
|||
{
|
||||
public interface IMediaFileRepository : IBasicRepository<EpisodeFile>
|
||||
{
|
||||
EpisodeFile GetFileByPath(string path);
|
||||
List<EpisodeFile> GetFilesBySeries(int seriesId);
|
||||
List<EpisodeFile> GetFilesBySeason(int seriesId, int seasonNumber);
|
||||
bool Exists(string path);
|
||||
}
|
||||
|
||||
|
||||
|
@ -23,11 +21,6 @@ namespace NzbDrone.Core.MediaFiles
|
|||
{
|
||||
}
|
||||
|
||||
public EpisodeFile GetFileByPath(string path)
|
||||
{
|
||||
return Query.SingleOrDefault(c => c.Path == path);
|
||||
}
|
||||
|
||||
public List<EpisodeFile> GetFilesBySeries(int seriesId)
|
||||
{
|
||||
return Query.Where(c => c.SeriesId == seriesId).ToList();
|
||||
|
@ -40,9 +33,5 @@ namespace NzbDrone.Core.MediaFiles
|
|||
.ToList();
|
||||
}
|
||||
|
||||
public bool Exists(string path)
|
||||
{
|
||||
return Query.Any(c => c.Path == path);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue