From 1fe8acf6156f0093e3cbe852f76159803612149e Mon Sep 17 00:00:00 2001 From: Lombiq Date: Fri, 19 Sep 2014 20:35:53 +0200 Subject: [PATCH] Removing old, orphaned files --- .../Fields/ItemReferenceContentField.cs | 8 -- .../Core/Common/Settings/LocationSettings.cs | 6 -- .../ItemReferenceContentFieldDisplayModel.cs | 12 --- ...temReferenceContentFieldEditorViewModel.cs | 12 --- .../Feeds/CommentFeedQuery.cs | 35 -------- .../Styles/Images/close.png | Bin 1110 -> 0 bytes .../ViewModels/BooleanFieldViewModel.cs | 13 --- .../ItemReferenceContentFieldDisplayModel.cs | 12 --- ...temReferenceContentFieldEditorViewModel.cs | 12 --- .../UI/Navigation/INavigationBuilder.cs | 85 ------------------ 10 files changed, 195 deletions(-) delete mode 100644 src/Orchard.Web/Core/Common/Fields/ItemReferenceContentField.cs delete mode 100644 src/Orchard.Web/Core/Common/Settings/LocationSettings.cs delete mode 100644 src/Orchard.Web/Modules/Orchard.ArchiveLater/ViewModels/ItemReferenceContentFieldDisplayModel.cs delete mode 100644 src/Orchard.Web/Modules/Orchard.ArchiveLater/ViewModels/ItemReferenceContentFieldEditorViewModel.cs delete mode 100644 src/Orchard.Web/Modules/Orchard.Comments/Feeds/CommentFeedQuery.cs delete mode 100644 src/Orchard.Web/Modules/Orchard.DesignerTools/Styles/Images/close.png delete mode 100644 src/Orchard.Web/Modules/Orchard.Fields/ViewModels/BooleanFieldViewModel.cs delete mode 100644 src/Orchard.Web/Modules/Orchard.PublishLater/ViewModels/ItemReferenceContentFieldDisplayModel.cs delete mode 100644 src/Orchard.Web/Modules/Orchard.PublishLater/ViewModels/ItemReferenceContentFieldEditorViewModel.cs delete mode 100644 src/Orchard/UI/Navigation/INavigationBuilder.cs diff --git a/src/Orchard.Web/Core/Common/Fields/ItemReferenceContentField.cs b/src/Orchard.Web/Core/Common/Fields/ItemReferenceContentField.cs deleted file mode 100644 index bd3e9b62b..000000000 --- a/src/Orchard.Web/Core/Common/Fields/ItemReferenceContentField.cs +++ /dev/null @@ -1,8 +0,0 @@ -using Orchard.ContentManagement; -using Orchard.ContentManagement.Records; - -namespace Orchard.Core.Common.Fields { - public class ItemReferenceContentField : ContentField { - public ContentItemRecord ContentItemReference { get; set; } - } -} diff --git a/src/Orchard.Web/Core/Common/Settings/LocationSettings.cs b/src/Orchard.Web/Core/Common/Settings/LocationSettings.cs deleted file mode 100644 index 7e595c13a..000000000 --- a/src/Orchard.Web/Core/Common/Settings/LocationSettings.cs +++ /dev/null @@ -1,6 +0,0 @@ -namespace Orchard.Core.Common.Settings { - public class LocationSettings { - public string Zone { get; set; } - public string Position { get; set; } - } -} \ No newline at end of file diff --git a/src/Orchard.Web/Modules/Orchard.ArchiveLater/ViewModels/ItemReferenceContentFieldDisplayModel.cs b/src/Orchard.Web/Modules/Orchard.ArchiveLater/ViewModels/ItemReferenceContentFieldDisplayModel.cs deleted file mode 100644 index 5344396c8..000000000 --- a/src/Orchard.Web/Modules/Orchard.ArchiveLater/ViewModels/ItemReferenceContentFieldDisplayModel.cs +++ /dev/null @@ -1,12 +0,0 @@ -using Orchard.ContentManagement; - -namespace Orchard.Core.Common.ViewModels { - public class ItemReferenceContentFieldDisplayViewModel { - private ContentItem _item; - - public ContentItem Item { - get { return _item; } - set { _item = value; } - } - } -} \ No newline at end of file diff --git a/src/Orchard.Web/Modules/Orchard.ArchiveLater/ViewModels/ItemReferenceContentFieldEditorViewModel.cs b/src/Orchard.Web/Modules/Orchard.ArchiveLater/ViewModels/ItemReferenceContentFieldEditorViewModel.cs deleted file mode 100644 index dd0249005..000000000 --- a/src/Orchard.Web/Modules/Orchard.ArchiveLater/ViewModels/ItemReferenceContentFieldEditorViewModel.cs +++ /dev/null @@ -1,12 +0,0 @@ -using Orchard.ContentManagement; - -namespace Orchard.Core.Common.ViewModels { - public class ItemReferenceContentFieldEditorViewModel { - private ContentItem _item; - - public ContentItem Item { - get { return _item; } - set { _item = value; } - } - } -} diff --git a/src/Orchard.Web/Modules/Orchard.Comments/Feeds/CommentFeedQuery.cs b/src/Orchard.Web/Modules/Orchard.Comments/Feeds/CommentFeedQuery.cs deleted file mode 100644 index 76e430ef9..000000000 --- a/src/Orchard.Web/Modules/Orchard.Comments/Feeds/CommentFeedQuery.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System.Linq; -using Orchard.Comments.Models; -using Orchard.Core.Common.Records; -using Orchard.Core.Feeds; -using Orchard.Core.Feeds.Models; -using Orchard.Data; - -namespace Orchard.Comments.Feeds { - public class CommentScopeFeedQuery : IFeedQueryProvider, IFeedQuery { - private readonly IRepository _commonRepository; - private readonly IRepository _commentRepository; - - public CommentScopeFeedQuery( - IRepository commonRepository, - IRepository commentRepository) { - _commonRepository = commonRepository; - _commentRepository = commentRepository; - } - - public FeedQueryMatch Match(FeedContext context) { - if (context.ValueProvider.ContainsPrefix("commentscopeid")) { - return new FeedQueryMatch { Priority = -1, FeedQuery = this }; - } - return null; - } - - public void Execute(FeedContext context) { - var scopeContainerId = (int)context.ValueProvider.GetValue("commentscopeid").ConvertTo(typeof (int)); - _commonRepository.Fetch(x => x.Container.Id == scopeContainerId).Select(x => x.Id); - var comments = _commentRepository.Fetch(x=>x.) - context.FeedFormatter.AddItem(context, new Comment()); - } - } - -} diff --git a/src/Orchard.Web/Modules/Orchard.DesignerTools/Styles/Images/close.png b/src/Orchard.Web/Modules/Orchard.DesignerTools/Styles/Images/close.png deleted file mode 100644 index ccb13672ac2954c1e8992788febaa96f08845947..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1110 zcmeAS@N?(olHy`uVBq!ia0vp^d?3uh3?wzC-F*zC7>k44ofy`glX(f`u%tWsIx;Y9 z?C1WI$jZRL%n;xc;;N~oZE9g-ZfR$2>*C_!B3-_qUK+TGgO-`P8*yKidG#OV{J&Y3cE!L->67cN_~bk&BXt2QoOy=l$H?W;EJ zUB7kj#_jvpZ9TAd>%sNg53SpNc+-wU8+IPsvitDnJtsErIk{!;scrku>^XF5-_f(X z4qx1J%Vm-ijNa^Tpx!>2AEJazTZ>1#($Upsd8+R-!DkDt4K`1Fkkls9e0b&NqpPGBI{Y9@FS5IDjIC1J(yZ)lZbFxi#*l2xk^Ek9MdU4Bw*<7==x!BI$+;Wfq zLMihn*3#_BI?~}*FO&}7`nXt$vuR03O*-$Ti(mJMKdpQh$ds9XbK6@BlWTEJ5f`@| f>oeLmOXxr2hDOD`&vmZ;0tJkxtDnm{r-UW|L=+mx diff --git a/src/Orchard.Web/Modules/Orchard.Fields/ViewModels/BooleanFieldViewModel.cs b/src/Orchard.Web/Modules/Orchard.Fields/ViewModels/BooleanFieldViewModel.cs deleted file mode 100644 index 50d719687..000000000 --- a/src/Orchard.Web/Modules/Orchard.Fields/ViewModels/BooleanFieldViewModel.cs +++ /dev/null @@ -1,13 +0,0 @@ -namespace Orchard.Fields.ViewModels { - - public class BooleanFieldViewModel { - - public string Name { get; set; } - - public bool? Value { get; set; } - - public string NotSetLabel { get; set; } - public string OnLabel { get; set; } - public string OffLabel { get; set; } - } -} \ No newline at end of file diff --git a/src/Orchard.Web/Modules/Orchard.PublishLater/ViewModels/ItemReferenceContentFieldDisplayModel.cs b/src/Orchard.Web/Modules/Orchard.PublishLater/ViewModels/ItemReferenceContentFieldDisplayModel.cs deleted file mode 100644 index 5344396c8..000000000 --- a/src/Orchard.Web/Modules/Orchard.PublishLater/ViewModels/ItemReferenceContentFieldDisplayModel.cs +++ /dev/null @@ -1,12 +0,0 @@ -using Orchard.ContentManagement; - -namespace Orchard.Core.Common.ViewModels { - public class ItemReferenceContentFieldDisplayViewModel { - private ContentItem _item; - - public ContentItem Item { - get { return _item; } - set { _item = value; } - } - } -} \ No newline at end of file diff --git a/src/Orchard.Web/Modules/Orchard.PublishLater/ViewModels/ItemReferenceContentFieldEditorViewModel.cs b/src/Orchard.Web/Modules/Orchard.PublishLater/ViewModels/ItemReferenceContentFieldEditorViewModel.cs deleted file mode 100644 index dd0249005..000000000 --- a/src/Orchard.Web/Modules/Orchard.PublishLater/ViewModels/ItemReferenceContentFieldEditorViewModel.cs +++ /dev/null @@ -1,12 +0,0 @@ -using Orchard.ContentManagement; - -namespace Orchard.Core.Common.ViewModels { - public class ItemReferenceContentFieldEditorViewModel { - private ContentItem _item; - - public ContentItem Item { - get { return _item; } - set { _item = value; } - } - } -} diff --git a/src/Orchard/UI/Navigation/INavigationBuilder.cs b/src/Orchard/UI/Navigation/INavigationBuilder.cs deleted file mode 100644 index 3f9577b72..000000000 --- a/src/Orchard/UI/Navigation/INavigationBuilder.cs +++ /dev/null @@ -1,85 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Web.Routing; - -namespace Orchard.UI.Navigation { - public class NavigationBuilder { - IEnumerable Contained { get; set; } - - public NavigationBuilder Add(string caption, string position, Action itemBuilder) { - var childBuilder = new NavigationItemBuilder(); - - if (!string.IsNullOrEmpty(caption)) - childBuilder.Caption(caption); - - if (!string.IsNullOrEmpty(position)) - childBuilder.Position(position); - - itemBuilder(childBuilder); - Contained = (Contained ?? Enumerable.Empty()).Concat(childBuilder.Build()); - return this; - } - - public NavigationBuilder Add(string caption, Action itemBuilder) { - return Add(caption, null, itemBuilder); - } - public NavigationBuilder Add(Action itemBuilder) { - return Add(null, null, itemBuilder); - } - public NavigationBuilder Add(string caption, string position) { - return Add(caption, position, x=> { }); - } - public NavigationBuilder Add(string caption) { - return Add(caption, null, x => { }); - } - - public IEnumerable Build() { - return (Contained ?? Enumerable.Empty()).ToList(); - } - } - - public class NavigationItemBuilder : NavigationBuilder { - private readonly MenuItem _item; - - public NavigationItemBuilder() { - _item = new MenuItem(); - } - - public NavigationItemBuilder Caption(string caption) { - _item.Text = caption; - return this; - } - - public NavigationItemBuilder Position(string position) { - _item.Position = position; - return this; - } - - public new IEnumerable Build() { - _item.Contained = base.Build(); - return new[] { _item }; - } - - public NavigationItemBuilder Action(string actionName) { - return Action(actionName, null, new RouteValueDictionary()); - } - - public NavigationItemBuilder Action(string actionName, string controllerName) { - return Action(actionName, controllerName, new RouteValueDictionary()); - } - - public NavigationItemBuilder Action(string actionName, string controllerName, object values) { - return Action(actionName, controllerName, new RouteValueDictionary(values)); - } - - public NavigationItemBuilder Action(string actionName, string controllerName, RouteValueDictionary values) { - _item.RouteValues = new RouteValueDictionary(values); - if (!string.IsNullOrEmpty(actionName)) - _item.RouteValues["action"] = actionName; - if (!string.IsNullOrEmpty(controllerName)) - _item.RouteValues["controller"] = controllerName; - return this; - } - } -} \ No newline at end of file