From 121f3258afccac8ded781a33fec884cec9fc2769 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Wed, 18 Jan 2012 20:01:50 -0800 Subject: [PATCH] Removed some unused models from NzbDrone.Web --- NzbDrone.Web/Models/AddNewSeriesModel.cs | 26 ------------------- NzbDrone.Web/Models/MappingModel.cs | 10 ------- NzbDrone.Web/Models/QualityTypeModel.cs | 13 ---------- NzbDrone.Web/Models/RootDirModel.cs | 15 ----------- NzbDrone.Web/Models/SeasonEditModel.cs | 14 ---------- NzbDrone.Web/Models/SeriesModel.cs | 3 --- .../Models/SeriesSearchResultModel.cs | 5 +--- NzbDrone.Web/Models/SettingsModels.cs | 12 --------- NzbDrone.Web/NzbDrone.Web.csproj | 6 ----- 9 files changed, 1 insertion(+), 103 deletions(-) delete mode 100644 NzbDrone.Web/Models/AddNewSeriesModel.cs delete mode 100644 NzbDrone.Web/Models/MappingModel.cs delete mode 100644 NzbDrone.Web/Models/QualityTypeModel.cs delete mode 100644 NzbDrone.Web/Models/RootDirModel.cs delete mode 100644 NzbDrone.Web/Models/SeasonEditModel.cs delete mode 100644 NzbDrone.Web/Models/SettingsModels.cs diff --git a/NzbDrone.Web/Models/AddNewSeriesModel.cs b/NzbDrone.Web/Models/AddNewSeriesModel.cs deleted file mode 100644 index 0431704eb..000000000 --- a/NzbDrone.Web/Models/AddNewSeriesModel.cs +++ /dev/null @@ -1,26 +0,0 @@ -using System.Collections.Generic; -using System.ComponentModel; -using System.ComponentModel.DataAnnotations; -using System.Web.Mvc; -using NzbDrone.Core.Repository; - -namespace NzbDrone.Web.Models -{ - public class AddNewSeriesModel - { - [Required(ErrorMessage = "Please enter a series name")] - [DataType(DataType.Text)] - [DisplayName("Single Series Path")] - [DisplayFormat(ConvertEmptyStringToNull = false)] - public string SeriesName { get; set; } - - public string DirectorySeparatorChar { get; set; } - - public List RootDirectories { get; set; } - - [DisplayName("Quality Profile")] - public int QualityProfileId { get; set; } - - public SelectList QualitySelectList { get; set; } - } -} \ No newline at end of file diff --git a/NzbDrone.Web/Models/MappingModel.cs b/NzbDrone.Web/Models/MappingModel.cs deleted file mode 100644 index 47dd56ed4..000000000 --- a/NzbDrone.Web/Models/MappingModel.cs +++ /dev/null @@ -1,10 +0,0 @@ -using System; - -namespace NzbDrone.Web.Models -{ - public class MappingModel - { - public int Id { get; set; } - public String Path { get; set; } - } -} \ No newline at end of file diff --git a/NzbDrone.Web/Models/QualityTypeModel.cs b/NzbDrone.Web/Models/QualityTypeModel.cs deleted file mode 100644 index 7f6e0a958..000000000 --- a/NzbDrone.Web/Models/QualityTypeModel.cs +++ /dev/null @@ -1,13 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Web; -using NzbDrone.Core.Repository.Quality; - -namespace NzbDrone.Web.Models -{ - public class QualityTypeModel - { - public int Id { get; set; } - public QualityTypes Name { get; set; } - } -} \ No newline at end of file diff --git a/NzbDrone.Web/Models/RootDirModel.cs b/NzbDrone.Web/Models/RootDirModel.cs deleted file mode 100644 index 1072b3412..000000000 --- a/NzbDrone.Web/Models/RootDirModel.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Web; -using System.Web.Mvc; - -namespace NzbDrone.Web.Models -{ - public class RootDirModel - { - public int Id { get; set; } - public string Path { get; set; } - public string CleanPath { get; set; } - public SelectList SelectList { get; set; } - } -} \ No newline at end of file diff --git a/NzbDrone.Web/Models/SeasonEditModel.cs b/NzbDrone.Web/Models/SeasonEditModel.cs deleted file mode 100644 index cbf14a8d6..000000000 --- a/NzbDrone.Web/Models/SeasonEditModel.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Web; - -namespace NzbDrone.Web.Models -{ - public class SeasonEditModel - { - public int SeriesId { get; set; } - public int SeasonNumber { get; set; } - public string SeasonString { get; set; } - public bool Monitored { get; set; } - } -} \ No newline at end of file diff --git a/NzbDrone.Web/Models/SeriesModel.cs b/NzbDrone.Web/Models/SeriesModel.cs index 2a2bed978..0c2774cec 100644 --- a/NzbDrone.Web/Models/SeriesModel.cs +++ b/NzbDrone.Web/Models/SeriesModel.cs @@ -42,8 +42,5 @@ namespace NzbDrone.Web.Models [DisplayName("Monitored")] [Description("Should NzbDrone download episodes for this series?")] public bool Monitored { get; set; } - - [DisplayName("Season Editor")] - public List SeasonEditor { get; set; } } } \ No newline at end of file diff --git a/NzbDrone.Web/Models/SeriesSearchResultModel.cs b/NzbDrone.Web/Models/SeriesSearchResultModel.cs index 43258be11..ac2104e03 100644 --- a/NzbDrone.Web/Models/SeriesSearchResultModel.cs +++ b/NzbDrone.Web/Models/SeriesSearchResultModel.cs @@ -1,11 +1,8 @@ -using System; - -namespace NzbDrone.Web.Models +namespace NzbDrone.Web.Models { public class SeriesSearchResultModel { public int Id { get; set; } public string Title { get; set; } - public DateTime FirstAired { get; set; } } } \ No newline at end of file diff --git a/NzbDrone.Web/Models/SettingsModels.cs b/NzbDrone.Web/Models/SettingsModels.cs deleted file mode 100644 index 8430fb842..000000000 --- a/NzbDrone.Web/Models/SettingsModels.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System.Collections.Generic; -using System.ComponentModel; -using NzbDrone.Core.Repository; - -namespace NzbDrone.Web.Models -{ - public class SettingsModel - { - [DisplayName("TV Series Root Folder(s)")] - public List Directories { get; set; } - } -} \ No newline at end of file diff --git a/NzbDrone.Web/NzbDrone.Web.csproj b/NzbDrone.Web/NzbDrone.Web.csproj index b0205517f..965adf7cb 100644 --- a/NzbDrone.Web/NzbDrone.Web.csproj +++ b/NzbDrone.Web/NzbDrone.Web.csproj @@ -231,26 +231,20 @@ - - - - - -