Removed obsolete property from User
This commit is contained in:
@@ -46,21 +46,5 @@ namespace Umbraco.Cms.Core.Models.Membership
|
||||
/// A Json blob stored for recording tour data for a user
|
||||
/// </summary>
|
||||
string TourData { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns an item from the user instance's cache
|
||||
/// </summary>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
/// <param name="cacheKey"></param>
|
||||
/// <returns></returns>
|
||||
T FromUserCache<T>(string cacheKey) where T : class;
|
||||
|
||||
/// <summary>
|
||||
/// Puts an item in the user instance's cache
|
||||
/// </summary>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
/// <param name="cacheKey"></param>
|
||||
/// <param name="vals"></param>
|
||||
void ToUserCache<T>(string cacheKey, T vals) where T : class;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -366,41 +366,6 @@ namespace Umbraco.Cms.Core.Models.Membership
|
||||
}
|
||||
}
|
||||
|
||||
public T FromUserCache<T>(string cacheKey)
|
||||
where T : class
|
||||
{
|
||||
lock (_additionalDataLock)
|
||||
{
|
||||
return AdditionalData.TryGetValue(cacheKey, out var data)
|
||||
? data as T
|
||||
: null;
|
||||
}
|
||||
}
|
||||
|
||||
public void ToUserCache<T>(string cacheKey, T vals)
|
||||
where T : class
|
||||
{
|
||||
lock (_additionalDataLock)
|
||||
{
|
||||
AdditionalData[cacheKey] = vals;
|
||||
}
|
||||
}
|
||||
|
||||
[IgnoreDataMember]
|
||||
[DoNotClone]
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
[Obsolete("This should not be used, it's currently used for only a single edge case - should probably be removed for netcore")]
|
||||
internal IDictionary<string, object> AdditionalData
|
||||
{
|
||||
get
|
||||
{
|
||||
lock (_additionalDataLock)
|
||||
{
|
||||
return _additionalData ?? (_additionalData = new Dictionary<string, object>());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected override void PerformDeepClone(object clone)
|
||||
{
|
||||
base.PerformDeepClone(clone);
|
||||
|
||||
Reference in New Issue
Block a user