Obsolete warnings (#156)

This commit is contained in:
Jedd Morgan
2024-11-06 11:29:40 +00:00
committed by GitHub
parent 4cc78c4bc9
commit d65993389b
5 changed files with 1 additions and 10 deletions
-2
View File
@@ -257,8 +257,6 @@ dotnet_diagnostic.ca1509.severity = warning # Invalid entry in code metrics conf
dotnet_diagnostic.ca1861.severity = none # Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
dotnet_diagnostic.cs8618.severity = suggestion # nullable problem
dotnet_diagnostic.CS0809.severity = suggestion # obsolete errors
dotnet_diagnostic.CS0618.severity = suggestion # obsolete errors
# Performance rules
-5
View File
@@ -11,9 +11,4 @@ public class RasterLayer : Collection
public CRS? rasterCrs { get; set; }
public string? geomType { get; set; }
public Dictionary<string, object>? renderer { get; set; }
public RasterLayer()
{
collectionType = "RasterLayer";
}
}
-1
View File
@@ -15,7 +15,6 @@ public class VectorLayer : Collection
public VectorLayer()
{
collectionType = "VectorLayer";
attributes = new Base();
}
}
@@ -256,7 +256,7 @@ public sealed class VersionResource
return response.data.data;
}
[Obsolete("modelId is no longer required, use the overload that doesn't specify a model id")]
[Obsolete("modelId is no longer required, use the overload that doesn't specify a model id", true)]
public Task<Version> Get(
string versionId,
string modelId,
-1
View File
@@ -165,7 +165,6 @@ public class DynamicBase : DynamicObject, IDynamicMetaObjectProvider
/// <summary>
/// Gets all of the property names on this class, dynamic or not.
/// </summary> <returns></returns>
[Obsolete("Use `GetMembers(DynamicBaseMemberType.All).Keys` instead")]
public override IEnumerable<string> GetDynamicMemberNames()
{
var pinfos = TypeLoader.GetBaseProperties(GetType());