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 ccb13672a..000000000 Binary files a/src/Orchard.Web/Modules/Orchard.DesignerTools/Styles/Images/close.png and /dev/null differ 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