Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

Commit

Permalink
Remove obsolete-error APIs
Browse files Browse the repository at this point in the history
A number of APIs are maked as obsolete-error and thus can never
be referenced or used. Most of them were that way from the point of
adding as they are for infrastructure support (including designers)
or working around a missing language feature (i.e. static classes).
  • Loading branch information
weshaggard committed Sep 22, 2016
1 parent f79d00e commit d5fbcbe
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 179 deletions.
79 changes: 0 additions & 79 deletions netstandard/ref/System.Core.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2083,43 +2083,6 @@ public static partial class CallSiteHelpers
{
public static bool IsInternalFrame(System.Reflection.MethodBase mb) { throw null; }
}
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))]
public static partial class CallSiteOps
{
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))]
[System.ObsoleteAttribute("do not use this method", true)]
public static void AddRule<T>(System.Runtime.CompilerServices.CallSite<T> site, T rule) where T : class { }
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))]
[System.ObsoleteAttribute("do not use this method", true)]
public static T Bind<T>(System.Runtime.CompilerServices.CallSiteBinder binder, System.Runtime.CompilerServices.CallSite<T> site, object[] args) where T : class { throw null; }
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))]
[System.ObsoleteAttribute("do not use this method", true)]
public static void ClearMatch(System.Runtime.CompilerServices.CallSite site) { }
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))]
[System.ObsoleteAttribute("do not use this method", true)]
public static System.Runtime.CompilerServices.CallSite<T> CreateMatchmaker<T>(System.Runtime.CompilerServices.CallSite<T> site) where T : class { throw null; }
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))]
[System.ObsoleteAttribute("do not use this method", true)]
public static T[] GetCachedRules<T>(System.Runtime.CompilerServices.RuleCache<T> cache) where T : class { throw null; }
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))]
[System.ObsoleteAttribute("do not use this method", true)]
public static bool GetMatch(System.Runtime.CompilerServices.CallSite site) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))]
[System.ObsoleteAttribute("do not use this method", true)]
public static System.Runtime.CompilerServices.RuleCache<T> GetRuleCache<T>(System.Runtime.CompilerServices.CallSite<T> site) where T : class { throw null; }
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))]
[System.ObsoleteAttribute("do not use this method", true)]
public static T[] GetRules<T>(System.Runtime.CompilerServices.CallSite<T> site) where T : class { throw null; }
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))]
[System.ObsoleteAttribute("do not use this method", true)]
public static void MoveRule<T>(System.Runtime.CompilerServices.RuleCache<T> cache, T rule, int i) where T : class { }
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))]
[System.ObsoleteAttribute("do not use this method", true)]
public static bool SetNotMatched(System.Runtime.CompilerServices.CallSite site) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))]
[System.ObsoleteAttribute("do not use this method", true)]
public static void UpdateRules<T>(System.Runtime.CompilerServices.CallSite<T> @this, int matched) where T : class { }
}
public abstract partial class DebugInfoGenerator
{
protected DebugInfoGenerator() { }
Expand All @@ -2133,17 +2096,6 @@ public DynamicAttribute() { }
public DynamicAttribute(bool[] transformFlags) { }
public System.Collections.Generic.IList<bool> TransformFlags { get { throw null; } }
}
[System.ObsoleteAttribute("do not use this type", true)]
public partial class ExecutionScope
{
internal ExecutionScope() { }
public object[] Globals;
public object[] Locals;
public System.Runtime.CompilerServices.ExecutionScope Parent;
public System.Delegate CreateDelegate(int indexLambda, object[] locals) { throw null; }
public object[] CreateHoistedLocals() { throw null; }
public System.Linq.Expressions.Expression IsolateExpression(System.Linq.Expressions.Expression expression, object[] locals) { throw null; }
}
public partial interface IRuntimeVariables
{
int Count { get; }
Expand Down Expand Up @@ -2193,37 +2145,6 @@ public partial class RuleCache<T> where T : class
{
internal RuleCache() { }
}
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))]
public static partial class RuntimeOps
{
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))]
[System.ObsoleteAttribute("do not use this method", true)]
public static System.Runtime.CompilerServices.IRuntimeVariables CreateRuntimeVariables() { throw null; }
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))]
[System.ObsoleteAttribute("do not use this method", true)]
public static System.Runtime.CompilerServices.IRuntimeVariables CreateRuntimeVariables(object[] data, long[] indexes) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))]
[System.ObsoleteAttribute("do not use this method", true)]
public static bool ExpandoCheckVersion(System.Dynamic.ExpandoObject expando, object version) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))]
[System.ObsoleteAttribute("do not use this method", true)]
public static void ExpandoPromoteClass(System.Dynamic.ExpandoObject expando, object oldClass, object newClass) { }
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))]
[System.ObsoleteAttribute("do not use this method", true)]
public static bool ExpandoTryDeleteValue(System.Dynamic.ExpandoObject expando, object indexClass, int index, string name, bool ignoreCase) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))]
[System.ObsoleteAttribute("do not use this method", true)]
public static bool ExpandoTryGetValue(System.Dynamic.ExpandoObject expando, object indexClass, int index, string name, bool ignoreCase, out object value) { value = default(object); throw null; }
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))]
[System.ObsoleteAttribute("do not use this method", true)]
public static object ExpandoTrySetValue(System.Dynamic.ExpandoObject expando, object indexClass, int index, object value, string name, bool ignoreCase) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))]
[System.ObsoleteAttribute("do not use this method", true)]
public static System.Runtime.CompilerServices.IRuntimeVariables MergeRuntimeVariables(System.Runtime.CompilerServices.IRuntimeVariables first, System.Runtime.CompilerServices.IRuntimeVariables second, int[] indexes) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))]
[System.ObsoleteAttribute("do not use this method", true)]
public static System.Linq.Expressions.Expression Quote(System.Linq.Expressions.Expression expression, object hoistedLocals, object[] locals) { throw null; }
}
public partial class StrongBox<T> : System.Runtime.CompilerServices.IStrongBox
{
public T Value;
Expand Down
24 changes: 0 additions & 24 deletions netstandard/ref/System.Xml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,6 @@ public enum Formatting
Indented = 1,
None = 0,
}
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))]
[System.ObsoleteAttribute("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
public partial interface IApplicationResourceStreamResolver
{
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))]
[System.ObsoleteAttribute("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
System.IO.Stream GetApplicationResourceStream(System.Uri relativeUri);
}
public partial interface IHasXmlNode
{
System.Xml.XmlNode GetNode();
Expand Down Expand Up @@ -885,9 +877,6 @@ public virtual void Skip() { }
public sealed partial class XmlReaderSettings
{
public XmlReaderSettings() { }
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))]
[System.ObsoleteAttribute("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
public XmlReaderSettings(System.Xml.XmlResolver resolver) { }
public bool Async { get { throw null; } set { } }
public bool CheckCharacters { get { throw null; } set { } }
public bool CloseInput { get { throw null; } set { } }
Expand Down Expand Up @@ -1312,19 +1301,6 @@ public XmlWriterSettings() { }
public System.Xml.XmlWriterSettings Clone() { throw null; }
public void Reset() { }
}
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))]
[System.ObsoleteAttribute("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
public partial class XmlXapResolver : System.Xml.XmlResolver
{
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))]
[System.ObsoleteAttribute("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
public XmlXapResolver() { }
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))]
public override object GetEntity(System.Uri absoluteUri, string role, System.Type ofObjectToReturn) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))]
[System.ObsoleteAttribute("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
public static void RegisterApplicationResourceStreamResolver(System.Xml.IApplicationResourceStreamResolver appStreamResolver) { }
}
}
namespace System.Xml.Resolvers
{
Expand Down
Loading

0 comments on commit d5fbcbe

Please sign in to comment.