From f4078ccbecb544a38746e2c6ba54c20850664206 Mon Sep 17 00:00:00 2001 From: Gregorius Soedharmo Date: Mon, 27 Feb 2023 22:51:00 +0700 Subject: [PATCH] Remove obsolete methods from Akka.DistributedData (#6443) --- .../ReplicatorSettings.cs | 99 ------------------- ...c.ApproveDistributedData.Core.verified.txt | 6 -- ...ApproveDistributedData.DotNet.verified.txt | 6 -- ...ec.ApproveDistributedData.Net.verified.txt | 6 -- 4 files changed, 117 deletions(-) diff --git a/src/contrib/cluster/Akka.DistributedData/ReplicatorSettings.cs b/src/contrib/cluster/Akka.DistributedData/ReplicatorSettings.cs index 609519f7023..f1cd8651c0f 100644 --- a/src/contrib/cluster/Akka.DistributedData/ReplicatorSettings.cs +++ b/src/contrib/cluster/Akka.DistributedData/ReplicatorSettings.cs @@ -166,105 +166,6 @@ public static ReplicatorSettings Create(Config config) /// public bool VerboseDebugLogging { get; } - [Obsolete] - public ReplicatorSettings(string role, - TimeSpan gossipInterval, - TimeSpan notifySubscribersInterval, - int maxDeltaElements, - string dispatcher, - TimeSpan pruningInterval, - TimeSpan maxPruningDissemination, - IImmutableSet durableKeys, - Props durableStoreProps, - TimeSpan pruningMarkerTimeToLive, - TimeSpan durablePruningMarkerTimeToLive, - int maxDeltaSize) - : this( - role, - gossipInterval, - notifySubscribersInterval, - maxDeltaElements, - dispatcher, - pruningInterval, - maxPruningDissemination, - durableKeys, - durableStoreProps, - pruningMarkerTimeToLive, - durablePruningMarkerTimeToLive, - maxDeltaSize, - false - ) - { - } - - [Obsolete] - public ReplicatorSettings(string role, - TimeSpan gossipInterval, - TimeSpan notifySubscribersInterval, - int maxDeltaElements, - string dispatcher, - TimeSpan pruningInterval, - TimeSpan maxPruningDissemination, - IImmutableSet durableKeys, - Props durableStoreProps, - TimeSpan pruningMarkerTimeToLive, - TimeSpan durablePruningMarkerTimeToLive, - int maxDeltaSize, - bool restartReplicatorOnFailure) - : this( - role, - gossipInterval, - notifySubscribersInterval, - maxDeltaElements, - dispatcher, - pruningInterval, - maxPruningDissemination, - durableKeys, - durableStoreProps, - pruningMarkerTimeToLive, - durablePruningMarkerTimeToLive, - maxDeltaSize, - false, - false, - false - ) - { - } - - [Obsolete] - public ReplicatorSettings(string role, - TimeSpan gossipInterval, - TimeSpan notifySubscribersInterval, - int maxDeltaElements, - string dispatcher, - TimeSpan pruningInterval, - TimeSpan maxPruningDissemination, - IImmutableSet durableKeys, - Props durableStoreProps, - TimeSpan pruningMarkerTimeToLive, - TimeSpan durablePruningMarkerTimeToLive, - int maxDeltaSize, - bool restartReplicatorOnFailure, - bool preferOldest) : this( - role, - gossipInterval, - notifySubscribersInterval, - maxDeltaElements, - dispatcher, - pruningInterval, - maxPruningDissemination, - durableKeys, - durableStoreProps, - pruningMarkerTimeToLive, - durablePruningMarkerTimeToLive, - maxDeltaSize, - restartReplicatorOnFailure, - preferOldest, - false - ) - { - } - public ReplicatorSettings(string role, TimeSpan gossipInterval, TimeSpan notifySubscribersInterval, diff --git a/src/core/Akka.API.Tests/verify/CoreAPISpec.ApproveDistributedData.Core.verified.txt b/src/core/Akka.API.Tests/verify/CoreAPISpec.ApproveDistributedData.Core.verified.txt index e91e879ea35..4ab52ca0df8 100644 --- a/src/core/Akka.API.Tests/verify/CoreAPISpec.ApproveDistributedData.Core.verified.txt +++ b/src/core/Akka.API.Tests/verify/CoreAPISpec.ApproveDistributedData.Core.verified.txt @@ -773,12 +773,6 @@ namespace Akka.DistributedData } public sealed class ReplicatorSettings { - [System.ObsoleteAttribute()] - public ReplicatorSettings(string role, System.TimeSpan gossipInterval, System.TimeSpan notifySubscribersInterval, int maxDeltaElements, string dispatcher, System.TimeSpan pruningInterval, System.TimeSpan maxPruningDissemination, System.Collections.Immutable.IImmutableSet durableKeys, Akka.Actor.Props durableStoreProps, System.TimeSpan pruningMarkerTimeToLive, System.TimeSpan durablePruningMarkerTimeToLive, int maxDeltaSize) { } - [System.ObsoleteAttribute()] - public ReplicatorSettings(string role, System.TimeSpan gossipInterval, System.TimeSpan notifySubscribersInterval, int maxDeltaElements, string dispatcher, System.TimeSpan pruningInterval, System.TimeSpan maxPruningDissemination, System.Collections.Immutable.IImmutableSet durableKeys, Akka.Actor.Props durableStoreProps, System.TimeSpan pruningMarkerTimeToLive, System.TimeSpan durablePruningMarkerTimeToLive, int maxDeltaSize, bool restartReplicatorOnFailure) { } - [System.ObsoleteAttribute()] - public ReplicatorSettings(string role, System.TimeSpan gossipInterval, System.TimeSpan notifySubscribersInterval, int maxDeltaElements, string dispatcher, System.TimeSpan pruningInterval, System.TimeSpan maxPruningDissemination, System.Collections.Immutable.IImmutableSet durableKeys, Akka.Actor.Props durableStoreProps, System.TimeSpan pruningMarkerTimeToLive, System.TimeSpan durablePruningMarkerTimeToLive, int maxDeltaSize, bool restartReplicatorOnFailure, bool preferOldest) { } public ReplicatorSettings(string role, System.TimeSpan gossipInterval, System.TimeSpan notifySubscribersInterval, int maxDeltaElements, string dispatcher, System.TimeSpan pruningInterval, System.TimeSpan maxPruningDissemination, System.Collections.Immutable.IImmutableSet durableKeys, Akka.Actor.Props durableStoreProps, System.TimeSpan pruningMarkerTimeToLive, System.TimeSpan durablePruningMarkerTimeToLive, int maxDeltaSize, bool restartReplicatorOnFailure, bool preferOldest, bool verboseDebugLogging) { } public string Dispatcher { get; } public System.Collections.Immutable.IImmutableSet DurableKeys { get; } diff --git a/src/core/Akka.API.Tests/verify/CoreAPISpec.ApproveDistributedData.DotNet.verified.txt b/src/core/Akka.API.Tests/verify/CoreAPISpec.ApproveDistributedData.DotNet.verified.txt index 331a7677475..562ca36a989 100644 --- a/src/core/Akka.API.Tests/verify/CoreAPISpec.ApproveDistributedData.DotNet.verified.txt +++ b/src/core/Akka.API.Tests/verify/CoreAPISpec.ApproveDistributedData.DotNet.verified.txt @@ -773,12 +773,6 @@ namespace Akka.DistributedData } public sealed class ReplicatorSettings { - [System.ObsoleteAttribute()] - public ReplicatorSettings(string role, System.TimeSpan gossipInterval, System.TimeSpan notifySubscribersInterval, int maxDeltaElements, string dispatcher, System.TimeSpan pruningInterval, System.TimeSpan maxPruningDissemination, System.Collections.Immutable.IImmutableSet durableKeys, Akka.Actor.Props durableStoreProps, System.TimeSpan pruningMarkerTimeToLive, System.TimeSpan durablePruningMarkerTimeToLive, int maxDeltaSize) { } - [System.ObsoleteAttribute()] - public ReplicatorSettings(string role, System.TimeSpan gossipInterval, System.TimeSpan notifySubscribersInterval, int maxDeltaElements, string dispatcher, System.TimeSpan pruningInterval, System.TimeSpan maxPruningDissemination, System.Collections.Immutable.IImmutableSet durableKeys, Akka.Actor.Props durableStoreProps, System.TimeSpan pruningMarkerTimeToLive, System.TimeSpan durablePruningMarkerTimeToLive, int maxDeltaSize, bool restartReplicatorOnFailure) { } - [System.ObsoleteAttribute()] - public ReplicatorSettings(string role, System.TimeSpan gossipInterval, System.TimeSpan notifySubscribersInterval, int maxDeltaElements, string dispatcher, System.TimeSpan pruningInterval, System.TimeSpan maxPruningDissemination, System.Collections.Immutable.IImmutableSet durableKeys, Akka.Actor.Props durableStoreProps, System.TimeSpan pruningMarkerTimeToLive, System.TimeSpan durablePruningMarkerTimeToLive, int maxDeltaSize, bool restartReplicatorOnFailure, bool preferOldest) { } public ReplicatorSettings(string role, System.TimeSpan gossipInterval, System.TimeSpan notifySubscribersInterval, int maxDeltaElements, string dispatcher, System.TimeSpan pruningInterval, System.TimeSpan maxPruningDissemination, System.Collections.Immutable.IImmutableSet durableKeys, Akka.Actor.Props durableStoreProps, System.TimeSpan pruningMarkerTimeToLive, System.TimeSpan durablePruningMarkerTimeToLive, int maxDeltaSize, bool restartReplicatorOnFailure, bool preferOldest, bool verboseDebugLogging) { } public string Dispatcher { get; } public System.Collections.Immutable.IImmutableSet DurableKeys { get; } diff --git a/src/core/Akka.API.Tests/verify/CoreAPISpec.ApproveDistributedData.Net.verified.txt b/src/core/Akka.API.Tests/verify/CoreAPISpec.ApproveDistributedData.Net.verified.txt index e91e879ea35..4ab52ca0df8 100644 --- a/src/core/Akka.API.Tests/verify/CoreAPISpec.ApproveDistributedData.Net.verified.txt +++ b/src/core/Akka.API.Tests/verify/CoreAPISpec.ApproveDistributedData.Net.verified.txt @@ -773,12 +773,6 @@ namespace Akka.DistributedData } public sealed class ReplicatorSettings { - [System.ObsoleteAttribute()] - public ReplicatorSettings(string role, System.TimeSpan gossipInterval, System.TimeSpan notifySubscribersInterval, int maxDeltaElements, string dispatcher, System.TimeSpan pruningInterval, System.TimeSpan maxPruningDissemination, System.Collections.Immutable.IImmutableSet durableKeys, Akka.Actor.Props durableStoreProps, System.TimeSpan pruningMarkerTimeToLive, System.TimeSpan durablePruningMarkerTimeToLive, int maxDeltaSize) { } - [System.ObsoleteAttribute()] - public ReplicatorSettings(string role, System.TimeSpan gossipInterval, System.TimeSpan notifySubscribersInterval, int maxDeltaElements, string dispatcher, System.TimeSpan pruningInterval, System.TimeSpan maxPruningDissemination, System.Collections.Immutable.IImmutableSet durableKeys, Akka.Actor.Props durableStoreProps, System.TimeSpan pruningMarkerTimeToLive, System.TimeSpan durablePruningMarkerTimeToLive, int maxDeltaSize, bool restartReplicatorOnFailure) { } - [System.ObsoleteAttribute()] - public ReplicatorSettings(string role, System.TimeSpan gossipInterval, System.TimeSpan notifySubscribersInterval, int maxDeltaElements, string dispatcher, System.TimeSpan pruningInterval, System.TimeSpan maxPruningDissemination, System.Collections.Immutable.IImmutableSet durableKeys, Akka.Actor.Props durableStoreProps, System.TimeSpan pruningMarkerTimeToLive, System.TimeSpan durablePruningMarkerTimeToLive, int maxDeltaSize, bool restartReplicatorOnFailure, bool preferOldest) { } public ReplicatorSettings(string role, System.TimeSpan gossipInterval, System.TimeSpan notifySubscribersInterval, int maxDeltaElements, string dispatcher, System.TimeSpan pruningInterval, System.TimeSpan maxPruningDissemination, System.Collections.Immutable.IImmutableSet durableKeys, Akka.Actor.Props durableStoreProps, System.TimeSpan pruningMarkerTimeToLive, System.TimeSpan durablePruningMarkerTimeToLive, int maxDeltaSize, bool restartReplicatorOnFailure, bool preferOldest, bool verboseDebugLogging) { } public string Dispatcher { get; } public System.Collections.Immutable.IImmutableSet DurableKeys { get; }