V14: Deleted code marked as obsolete for V14 (#15998)
* Obsoletions related to Delivery API * Fix TypeLoader and TypeFinder tests * Remove obsolete and default implementations of IFileSource and IFileTypeCollection * More Delivery API related obsoletions * VariationContextAccessor related * ValueFactories obsoletion and fix references * ValueSetBuilders obsoletions * ValueConverters obsoletions * Other obsolete ctors and methods * Forgotten VariationContextAccessor obsoletion * More obsoletions * XPath related obsoletions * Revert XmlHelper changes * Delete RenamedRootNavigator and its tests * Fix test * XmlHelper obsoletion * Return null instead of GetXPathValue * Obsolete entire class instead * Remove XPath obsoletions from IPublishedCache * Remove XPath-related if-block that is no longer needed * Change obsolete msg for classes needed for NuCache * Moving classes to NuCache and making them internal * Remove more XPath-related obsoletions * Remove NavigableNavigator and its tests * Cleanup * Remove Xpath references from tests * Revert interface deletion in MediaCache * Using XOR operation Co-authored-by: Nuklon <Nuklon@users.noreply.github.com> --------- Co-authored-by: Nuklon <Nuklon@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
187d45860a
commit
9c18cd22e0
@@ -1,7 +1,5 @@
|
||||
using System.ComponentModel;
|
||||
using System.Xml.XPath;
|
||||
using Umbraco.Cms.Core.Models.PublishedContent;
|
||||
using Umbraco.Cms.Core.Xml;
|
||||
|
||||
namespace Umbraco.Cms.Core.PublishedCache.Internal;
|
||||
|
||||
@@ -38,28 +36,6 @@ public sealed class InternalPublishedContentCache : PublishedCacheBase, IPublish
|
||||
public override IEnumerable<IPublishedContent> GetAtRoot(bool preview, string? culture = null) =>
|
||||
_content.Values.Where(x => x.Parent == null);
|
||||
|
||||
[Obsolete("The current implementation of this method is suboptimal and will be removed entirely in a future version. Scheduled for removal in v14")]
|
||||
public override IPublishedContent GetSingleByXPath(bool preview, string xpath, XPathVariable[] vars) =>
|
||||
throw new NotImplementedException();
|
||||
|
||||
[Obsolete("The current implementation of this method is suboptimal and will be removed entirely in a future version. Scheduled for removal in v14")]
|
||||
public override IPublishedContent GetSingleByXPath(bool preview, XPathExpression xpath, XPathVariable[] vars) =>
|
||||
throw new NotImplementedException();
|
||||
|
||||
[Obsolete("The current implementation of this method is suboptimal and will be removed entirely in a future version. Scheduled for removal in v14")]
|
||||
public override IEnumerable<IPublishedContent> GetByXPath(bool preview, string xpath, XPathVariable[] vars) =>
|
||||
throw new NotImplementedException();
|
||||
|
||||
[Obsolete("The current implementation of this method is suboptimal and will be removed entirely in a future version. Scheduled for removal in v14")]
|
||||
public override IEnumerable<IPublishedContent>
|
||||
GetByXPath(bool preview, XPathExpression xpath, XPathVariable[] vars) => throw new NotImplementedException();
|
||||
|
||||
[Obsolete("The current implementation of this method is suboptimal and will be removed entirely in a future version. Scheduled for removal in v14")]
|
||||
public override XPathNavigator CreateNavigator(bool preview) => throw new NotImplementedException();
|
||||
|
||||
[Obsolete("The current implementation of this method is suboptimal and will be removed entirely in a future version. Scheduled for removal in v14")]
|
||||
public override XPathNavigator CreateNodeNavigator(int id, bool preview) => throw new NotImplementedException();
|
||||
|
||||
public override bool HasContent(bool preview) => _content.Count > 0;
|
||||
|
||||
public override IPublishedContentType GetContentType(int id) => throw new NotImplementedException();
|
||||
|
||||
@@ -13,9 +13,6 @@ public class InternalPublishedProperty : IPublishedProperty
|
||||
|
||||
public bool SolidHasValue { get; set; }
|
||||
|
||||
[Obsolete("The current implementation of XPath is suboptimal and will be removed entirely in a future version. Scheduled for removal in v14")]
|
||||
public object? SolidXPathValue { get; set; }
|
||||
|
||||
public object? SolidDeliveryApiValue { get; set; }
|
||||
|
||||
public IPublishedPropertyType PropertyType { get; set; } = null!;
|
||||
@@ -26,9 +23,6 @@ public class InternalPublishedProperty : IPublishedProperty
|
||||
|
||||
public virtual object? GetValue(string? culture = null, string? segment = null) => SolidValue;
|
||||
|
||||
[Obsolete("The current implementation of XPath is suboptimal and will be removed entirely in a future version. Scheduled for removal in v14")]
|
||||
public virtual object? GetXPathValue(string? culture = null, string? segment = null) => SolidXPathValue;
|
||||
|
||||
public virtual object? GetDeliveryApiValue(bool expanding, string? culture = null, string? segment = null) => SolidDeliveryApiValue;
|
||||
|
||||
public virtual bool HasValue(string? culture = null, string? segment = null) => SolidHasValue;
|
||||
|
||||
Reference in New Issue
Block a user