diff --git a/src/NzbDrone.Core/Housekeeping/Housekeepers/CleanupAbsolutePathMetadataFiles.cs b/src/NzbDrone.Core/Housekeeping/Housekeepers/CleanupAbsolutePathMetadataFiles.cs deleted file mode 100644 index 1293d4f07..000000000 --- a/src/NzbDrone.Core/Housekeeping/Housekeepers/CleanupAbsolutePathMetadataFiles.cs +++ /dev/null @@ -1,32 +0,0 @@ -using Dapper; -using NzbDrone.Core.Datastore; - -namespace NzbDrone.Core.Housekeeping.Housekeepers -{ - public class CleanupAbsolutePathMetadataFiles : IHousekeepingTask - { - private readonly IMainDatabase _database; - - public CleanupAbsolutePathMetadataFiles(IMainDatabase database) - { - _database = database; - } - - public void Clean() - { - using (var mapper = _database.OpenConnection()) - { - mapper.Execute(@"DELETE FROM MetadataFiles - WHERE Id IN ( - SELECT Id FROM MetadataFiles - WHERE RelativePath - LIKE '_:\%' - OR RelativePath - LIKE '\%' - OR RelativePath - LIKE '/%' - )"); - } - } - } -} diff --git a/src/NzbDrone.Core/Housekeeping/Housekeepers/CleanupAdditionalNamingSpecs.cs b/src/NzbDrone.Core/Housekeeping/Housekeepers/CleanupAdditionalNamingSpecs.cs deleted file mode 100644 index a1d9c56b7..000000000 --- a/src/NzbDrone.Core/Housekeeping/Housekeepers/CleanupAdditionalNamingSpecs.cs +++ /dev/null @@ -1,26 +0,0 @@ -using Dapper; -using NzbDrone.Core.Datastore; - -namespace NzbDrone.Core.Housekeeping.Housekeepers -{ - public class CleanupAdditionalNamingSpecs : IHousekeepingTask - { - private readonly IMainDatabase _database; - - public CleanupAdditionalNamingSpecs(IMainDatabase database) - { - _database = database; - } - - public void Clean() - { - using (var mapper = _database.OpenConnection()) - { - mapper.Execute(@"DELETE FROM NamingConfig - WHERE ID NOT IN ( - SELECT ID FROM NamingConfig - LIMIT 1)"); - } - } - } -}