Orchard.Layouts: Fixing code styling in ElementSessionState and removing ElementInstance

This commit is contained in:
Lombiq
2018-12-17 19:06:55 +01:00
parent 1d3e9a523f
commit 998946ba00
3 changed files with 3 additions and 28 deletions

View File

@@ -1,24 +0,0 @@
//using System.Collections.Generic;
//using Orchard.Layouts.Framework.Elements;
//namespace Orchard.Layouts.Models {
// public class ElementInstance {
// public ElementInstance(string id, ElementDescriptor elementDescriptor, int index = 0, IDictionary<string, string> Data = null) {
// Id = id;
// ElementDescriptor = elementDescriptor;
// Data = Data ?? new Dictionary<string, string>();
// Children = new List<ElementInstance>();
// Index = index;
// }
// public string Id { get; set; }
// public ElementDescriptor ElementDescriptor { get; set; }
// public ElementInstance Parent { get; set; }
// public IList<ElementInstance> Children { get; set; }
// public int Index { get; set; }
// public IDictionary<string, string> Data { get; set; }
// public bool IsTemplated { get; set; }
// }
//}

View File

@@ -1,8 +1,8 @@
using System;
namespace Orchard.Layouts.Models {
 [Serializable]
public class ElementSessionState {
namespace Orchard.Layouts.Models {
[Serializable]
public class ElementSessionState {
public string TypeName { get; set; }
public string ElementData { get; set; }
public string ElementEditorData { get; set; }

View File

@@ -500,7 +500,6 @@
<Compile Include="Framework\Harvesters\IElementHarvester.cs" />
<Compile Include="Services\ILayoutSerializer.cs" />
<Compile Include="Helpers\ElementDataHelper.cs" />
<Compile Include="Models\ElementInstance.cs" />
<Compile Include="Elements\Column.cs" />
<Compile Include="Services\LayoutSerializer.cs" />
<Compile Include="Providers\SnippetElementHarvester.cs" />