mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-23 22:25:09 -04:00
removed dead code
This commit is contained in:
@@ -8,7 +8,6 @@ namespace NzbDrone.Core.Qualities
|
||||
{
|
||||
public interface IQualityDefinitionRepository : IBasicRepository<QualityDefinition>
|
||||
{
|
||||
QualityDefinition GetByQualityId(int qualityId);
|
||||
}
|
||||
|
||||
public class QualityDefinitionRepository : BasicRepository<QualityDefinition>, IQualityDefinitionRepository
|
||||
@@ -18,16 +17,6 @@ namespace NzbDrone.Core.Qualities
|
||||
{
|
||||
}
|
||||
|
||||
public QualityDefinition GetByQualityId(int qualityId)
|
||||
{
|
||||
try
|
||||
{
|
||||
return Query.Where(q => (int) q.Quality == qualityId).Single();
|
||||
}
|
||||
catch (InvalidOperationException)
|
||||
{
|
||||
throw new ModelNotFoundException(typeof(QualityDefinition), qualityId);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user