Cleanup - kill IsInRecycleBin and trust Trashed

This commit is contained in:
Stephan
2016-06-08 13:44:44 +02:00
parent 79195c5c7d
commit 0b041b28fa
5 changed files with 3 additions and 63 deletions

View File

@@ -366,22 +366,6 @@ namespace Umbraco.Core.Models
}
#endregion
internal static bool IsInRecycleBin(this IContent content)
{
return IsInRecycleBin(content, Constants.System.RecycleBinContent);
}
internal static bool IsInRecycleBin(this IMedia media)
{
return IsInRecycleBin(media, Constants.System.RecycleBinMedia);
}
internal static bool IsInRecycleBin(this IContentBase content, int recycleBinId)
{
return content.Path.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries)
.Contains(recycleBinId.ToInvariantString());
}
/// <summary>
/// Removes characters that are not valide XML characters from all entity properties
/// of type string. See: http://stackoverflow.com/a/961504/5018