U4-6674 - Kill ToContentSet, becomes ToIndexedArray
This commit is contained in:
@@ -115,14 +115,6 @@ namespace Umbraco.Web.Models
|
||||
|
||||
public abstract bool IsDraft { get; }
|
||||
|
||||
public int GetIndex()
|
||||
{
|
||||
var index = this.Siblings().FindIndex(x => x.Id == Id);
|
||||
if (index < 0)
|
||||
throw new IndexOutOfRangeException("Could not find content in the content set.");
|
||||
return index;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Tree
|
||||
@@ -140,16 +132,6 @@ namespace Umbraco.Web.Models
|
||||
|
||||
#endregion
|
||||
|
||||
#region ContentSet
|
||||
|
||||
public virtual IEnumerable<IPublishedContent> ContentSet
|
||||
{
|
||||
// the default content set of a content is its siblings
|
||||
get { return this.Siblings(); }
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region ContentType
|
||||
|
||||
public abstract PublishedContentType ContentType { get; }
|
||||
|
||||
Reference in New Issue
Block a user