Skip to content

Commit

Permalink
Remove obsolete methods from Akka.Routing (#6455)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arkatufus committed Feb 27, 2023
1 parent 8f18619 commit c513a01
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 104 deletions.
Expand Up @@ -4213,8 +4213,6 @@ namespace Akka.Routing
public BroadcastGroup(Akka.Configuration.Config config) { }
public BroadcastGroup(params string[] paths) { }
public BroadcastGroup(System.Collections.Generic.IEnumerable<string> paths) { }
[System.ObsoleteAttribute("Use new BroadcastGroup(actorRefs.Select(c => c.Path.ToString())) instead [1.1.0]")]
public BroadcastGroup(System.Collections.Generic.IEnumerable<Akka.Actor.IActorRef> routees) { }
public BroadcastGroup(System.Collections.Generic.IEnumerable<string> paths, string routerDispatcher) { }
public override Akka.Routing.Router CreateRouter(Akka.Actor.ActorSystem system) { }
public override System.Collections.Generic.IEnumerable<string> GetPaths(Akka.Actor.ActorSystem system) { }
Expand Down Expand Up @@ -4299,9 +4297,6 @@ namespace Akka.Routing
public ConsistentHashingGroup(Akka.Configuration.Config config) { }
public ConsistentHashingGroup(params string[] paths) { }
public ConsistentHashingGroup(System.Collections.Generic.IEnumerable<string> paths) { }
[System.ObsoleteAttribute("Use new ConsistentHashingGroup(actorRefs.Select(c => c.Path.ToString())) instead " +
"[1.1.0]")]
public ConsistentHashingGroup(System.Collections.Generic.IEnumerable<Akka.Actor.IActorRef> routees) { }
public ConsistentHashingGroup(System.Collections.Generic.IEnumerable<string> paths, Akka.Routing.ConsistentHashMapping hashMapping) { }
public ConsistentHashingGroup(System.Collections.Generic.IEnumerable<string> paths, int virtualNodesFactor, Akka.Routing.ConsistentHashMapping hashMapping, string routerDispatcher) { }
public int VirtualNodesFactor { get; }
Expand Down Expand Up @@ -4416,8 +4411,6 @@ namespace Akka.Routing
{
protected readonly string[] InternalPaths;
protected Group(System.Collections.Generic.IEnumerable<string> paths, string routerDispatcher) { }
[System.ObsoleteAttribute("Deprecated since Akka.NET v1.1. Use Paths(ActorSystem) instead.")]
public System.Collections.Generic.IEnumerable<string> Paths { get; }
public override Akka.Actor.ActorBase CreateRouterActor() { }
public bool Equals(Akka.Routing.Group other) { }
public override bool Equals(object obj) { }
Expand Down Expand Up @@ -4551,8 +4544,6 @@ namespace Akka.Routing
public RoundRobinGroup(Akka.Configuration.Config config) { }
public RoundRobinGroup(params string[] paths) { }
public RoundRobinGroup(System.Collections.Generic.IEnumerable<string> paths) { }
[System.ObsoleteAttribute("Use RoundRobinGroup constructor with IEnumerable<string> parameter [1.1.0]")]
public RoundRobinGroup(System.Collections.Generic.IEnumerable<Akka.Actor.IActorRef> routees) { }
public RoundRobinGroup(System.Collections.Generic.IEnumerable<string> paths, string routerDispatcher) { }
public override Akka.Routing.Router CreateRouter(Akka.Actor.ActorSystem system) { }
public override System.Collections.Generic.IEnumerable<string> GetPaths(Akka.Actor.ActorSystem system) { }
Expand Down Expand Up @@ -4631,8 +4622,6 @@ namespace Akka.Routing
{
protected RouterConfig() { }
protected RouterConfig(string routerDispatcher) { }
[System.ObsoleteAttribute("Use NoRouter.Instance instead [1.1.0]")]
public static Akka.Routing.RouterConfig NoRouter { get; }
public virtual string RouterDispatcher { get; }
public virtual bool StopRouterWhenAllRouteesRemoved { get; }
public abstract Akka.Routing.Router CreateRouter(Akka.Actor.ActorSystem system);
Expand Down Expand Up @@ -4669,9 +4658,6 @@ namespace Akka.Routing
public ScatterGatherFirstCompletedGroup(Akka.Configuration.Config config) { }
public ScatterGatherFirstCompletedGroup(System.TimeSpan within, params string[] paths) { }
public ScatterGatherFirstCompletedGroup(System.Collections.Generic.IEnumerable<string> paths, System.TimeSpan within) { }
[System.ObsoleteAttribute("Use new ScatterGatherFirstCompletedGroup(actorRefs.Select(c => c.Path.ToString())" +
", within) instead [1.1.0]")]
public ScatterGatherFirstCompletedGroup(System.Collections.Generic.IEnumerable<Akka.Actor.IActorRef> routees, System.TimeSpan within) { }
public ScatterGatherFirstCompletedGroup(System.Collections.Generic.IEnumerable<string> paths, System.TimeSpan within, string routerDispatcher) { }
public System.TimeSpan Within { get; }
public override Akka.Routing.Router CreateRouter(Akka.Actor.ActorSystem system) { }
Expand Down
Expand Up @@ -4220,8 +4220,6 @@ namespace Akka.Routing
public BroadcastGroup(Akka.Configuration.Config config) { }
public BroadcastGroup(params string[] paths) { }
public BroadcastGroup(System.Collections.Generic.IEnumerable<string> paths) { }
[System.ObsoleteAttribute("Use new BroadcastGroup(actorRefs.Select(c => c.Path.ToString())) instead [1.1.0]")]
public BroadcastGroup(System.Collections.Generic.IEnumerable<Akka.Actor.IActorRef> routees) { }
public BroadcastGroup(System.Collections.Generic.IEnumerable<string> paths, string routerDispatcher) { }
public override Akka.Routing.Router CreateRouter(Akka.Actor.ActorSystem system) { }
public override System.Collections.Generic.IEnumerable<string> GetPaths(Akka.Actor.ActorSystem system) { }
Expand Down Expand Up @@ -4306,9 +4304,6 @@ namespace Akka.Routing
public ConsistentHashingGroup(Akka.Configuration.Config config) { }
public ConsistentHashingGroup(params string[] paths) { }
public ConsistentHashingGroup(System.Collections.Generic.IEnumerable<string> paths) { }
[System.ObsoleteAttribute("Use new ConsistentHashingGroup(actorRefs.Select(c => c.Path.ToString())) instead " +
"[1.1.0]")]
public ConsistentHashingGroup(System.Collections.Generic.IEnumerable<Akka.Actor.IActorRef> routees) { }
public ConsistentHashingGroup(System.Collections.Generic.IEnumerable<string> paths, Akka.Routing.ConsistentHashMapping hashMapping) { }
public ConsistentHashingGroup(System.Collections.Generic.IEnumerable<string> paths, int virtualNodesFactor, Akka.Routing.ConsistentHashMapping hashMapping, string routerDispatcher) { }
public int VirtualNodesFactor { get; }
Expand Down Expand Up @@ -4423,8 +4418,6 @@ namespace Akka.Routing
{
protected readonly string[] InternalPaths;
protected Group(System.Collections.Generic.IEnumerable<string> paths, string routerDispatcher) { }
[System.ObsoleteAttribute("Deprecated since Akka.NET v1.1. Use Paths(ActorSystem) instead.")]
public System.Collections.Generic.IEnumerable<string> Paths { get; }
public override Akka.Actor.ActorBase CreateRouterActor() { }
public bool Equals(Akka.Routing.Group other) { }
public override bool Equals(object obj) { }
Expand Down Expand Up @@ -4558,8 +4551,6 @@ namespace Akka.Routing
public RoundRobinGroup(Akka.Configuration.Config config) { }
public RoundRobinGroup(params string[] paths) { }
public RoundRobinGroup(System.Collections.Generic.IEnumerable<string> paths) { }
[System.ObsoleteAttribute("Use RoundRobinGroup constructor with IEnumerable<string> parameter [1.1.0]")]
public RoundRobinGroup(System.Collections.Generic.IEnumerable<Akka.Actor.IActorRef> routees) { }
public RoundRobinGroup(System.Collections.Generic.IEnumerable<string> paths, string routerDispatcher) { }
public override Akka.Routing.Router CreateRouter(Akka.Actor.ActorSystem system) { }
public override System.Collections.Generic.IEnumerable<string> GetPaths(Akka.Actor.ActorSystem system) { }
Expand Down Expand Up @@ -4638,8 +4629,6 @@ namespace Akka.Routing
{
protected RouterConfig() { }
protected RouterConfig(string routerDispatcher) { }
[System.ObsoleteAttribute("Use NoRouter.Instance instead [1.1.0]")]
public static Akka.Routing.RouterConfig NoRouter { get; }
public virtual string RouterDispatcher { get; }
public virtual bool StopRouterWhenAllRouteesRemoved { get; }
public abstract Akka.Routing.Router CreateRouter(Akka.Actor.ActorSystem system);
Expand Down Expand Up @@ -4676,9 +4665,6 @@ namespace Akka.Routing
public ScatterGatherFirstCompletedGroup(Akka.Configuration.Config config) { }
public ScatterGatherFirstCompletedGroup(System.TimeSpan within, params string[] paths) { }
public ScatterGatherFirstCompletedGroup(System.Collections.Generic.IEnumerable<string> paths, System.TimeSpan within) { }
[System.ObsoleteAttribute("Use new ScatterGatherFirstCompletedGroup(actorRefs.Select(c => c.Path.ToString())" +
", within) instead [1.1.0]")]
public ScatterGatherFirstCompletedGroup(System.Collections.Generic.IEnumerable<Akka.Actor.IActorRef> routees, System.TimeSpan within) { }
public ScatterGatherFirstCompletedGroup(System.Collections.Generic.IEnumerable<string> paths, System.TimeSpan within, string routerDispatcher) { }
public System.TimeSpan Within { get; }
public override Akka.Routing.Router CreateRouter(Akka.Actor.ActorSystem system) { }
Expand Down
Expand Up @@ -4213,8 +4213,6 @@ namespace Akka.Routing
public BroadcastGroup(Akka.Configuration.Config config) { }
public BroadcastGroup(params string[] paths) { }
public BroadcastGroup(System.Collections.Generic.IEnumerable<string> paths) { }
[System.ObsoleteAttribute("Use new BroadcastGroup(actorRefs.Select(c => c.Path.ToString())) instead [1.1.0]")]
public BroadcastGroup(System.Collections.Generic.IEnumerable<Akka.Actor.IActorRef> routees) { }
public BroadcastGroup(System.Collections.Generic.IEnumerable<string> paths, string routerDispatcher) { }
public override Akka.Routing.Router CreateRouter(Akka.Actor.ActorSystem system) { }
public override System.Collections.Generic.IEnumerable<string> GetPaths(Akka.Actor.ActorSystem system) { }
Expand Down Expand Up @@ -4299,9 +4297,6 @@ namespace Akka.Routing
public ConsistentHashingGroup(Akka.Configuration.Config config) { }
public ConsistentHashingGroup(params string[] paths) { }
public ConsistentHashingGroup(System.Collections.Generic.IEnumerable<string> paths) { }
[System.ObsoleteAttribute("Use new ConsistentHashingGroup(actorRefs.Select(c => c.Path.ToString())) instead " +
"[1.1.0]")]
public ConsistentHashingGroup(System.Collections.Generic.IEnumerable<Akka.Actor.IActorRef> routees) { }
public ConsistentHashingGroup(System.Collections.Generic.IEnumerable<string> paths, Akka.Routing.ConsistentHashMapping hashMapping) { }
public ConsistentHashingGroup(System.Collections.Generic.IEnumerable<string> paths, int virtualNodesFactor, Akka.Routing.ConsistentHashMapping hashMapping, string routerDispatcher) { }
public int VirtualNodesFactor { get; }
Expand Down Expand Up @@ -4416,8 +4411,6 @@ namespace Akka.Routing
{
protected readonly string[] InternalPaths;
protected Group(System.Collections.Generic.IEnumerable<string> paths, string routerDispatcher) { }
[System.ObsoleteAttribute("Deprecated since Akka.NET v1.1. Use Paths(ActorSystem) instead.")]
public System.Collections.Generic.IEnumerable<string> Paths { get; }
public override Akka.Actor.ActorBase CreateRouterActor() { }
public bool Equals(Akka.Routing.Group other) { }
public override bool Equals(object obj) { }
Expand Down Expand Up @@ -4551,8 +4544,6 @@ namespace Akka.Routing
public RoundRobinGroup(Akka.Configuration.Config config) { }
public RoundRobinGroup(params string[] paths) { }
public RoundRobinGroup(System.Collections.Generic.IEnumerable<string> paths) { }
[System.ObsoleteAttribute("Use RoundRobinGroup constructor with IEnumerable<string> parameter [1.1.0]")]
public RoundRobinGroup(System.Collections.Generic.IEnumerable<Akka.Actor.IActorRef> routees) { }
public RoundRobinGroup(System.Collections.Generic.IEnumerable<string> paths, string routerDispatcher) { }
public override Akka.Routing.Router CreateRouter(Akka.Actor.ActorSystem system) { }
public override System.Collections.Generic.IEnumerable<string> GetPaths(Akka.Actor.ActorSystem system) { }
Expand Down Expand Up @@ -4631,8 +4622,6 @@ namespace Akka.Routing
{
protected RouterConfig() { }
protected RouterConfig(string routerDispatcher) { }
[System.ObsoleteAttribute("Use NoRouter.Instance instead [1.1.0]")]
public static Akka.Routing.RouterConfig NoRouter { get; }
public virtual string RouterDispatcher { get; }
public virtual bool StopRouterWhenAllRouteesRemoved { get; }
public abstract Akka.Routing.Router CreateRouter(Akka.Actor.ActorSystem system);
Expand Down Expand Up @@ -4669,9 +4658,6 @@ namespace Akka.Routing
public ScatterGatherFirstCompletedGroup(Akka.Configuration.Config config) { }
public ScatterGatherFirstCompletedGroup(System.TimeSpan within, params string[] paths) { }
public ScatterGatherFirstCompletedGroup(System.Collections.Generic.IEnumerable<string> paths, System.TimeSpan within) { }
[System.ObsoleteAttribute("Use new ScatterGatherFirstCompletedGroup(actorRefs.Select(c => c.Path.ToString())" +
", within) instead [1.1.0]")]
public ScatterGatherFirstCompletedGroup(System.Collections.Generic.IEnumerable<Akka.Actor.IActorRef> routees, System.TimeSpan within) { }
public ScatterGatherFirstCompletedGroup(System.Collections.Generic.IEnumerable<string> paths, System.TimeSpan within, string routerDispatcher) { }
public System.TimeSpan Within { get; }
public override Akka.Routing.Router CreateRouter(Akka.Actor.ActorSystem system) { }
Expand Down
13 changes: 0 additions & 13 deletions src/core/Akka/Routing/Broadcast.cs
Expand Up @@ -274,19 +274,6 @@ public BroadcastGroup(IEnumerable<string> paths)
{
}

/// <summary>
/// Obsolete. Use <see cref="BroadcastGroup(IEnumerable{System.String})"/> instead.
/// <code>
/// new BroadcastGroup(actorRefs.Select(c => c.Path.ToString()))
/// </code>
/// </summary>
/// <param name="routees">N/A</param>
[Obsolete("Use new BroadcastGroup(actorRefs.Select(c => c.Path.ToString())) instead [1.1.0]")]
public BroadcastGroup(IEnumerable<IActorRef> routees)
: this(routees.Select(c => c.Path.ToString()))
{
}

/// <summary>
/// Initializes a new instance of the <see cref="BroadcastGroup"/> class.
/// </summary>
Expand Down
13 changes: 0 additions & 13 deletions src/core/Akka/Routing/ConsistentHashRouter.cs
Expand Up @@ -643,19 +643,6 @@ public ConsistentHashingGroup(IEnumerable<string> paths)
{
}

/// <summary>
/// Obsolete. Use <see cref="ConsistentHashingGroup(IEnumerable{System.String})"/> instead.
/// <code>
/// new ConsistentHashingGroup(actorRefs.Select(c => c.Path.ToString()))
/// </code>
/// </summary>
/// <param name="routees">N/A</param>
[Obsolete("Use new ConsistentHashingGroup(actorRefs.Select(c => c.Path.ToString())) instead [1.1.0]")]
public ConsistentHashingGroup(IEnumerable<IActorRef> routees)
: this(routees.Select(c => c.Path.ToString()))
{
}

/// <summary>
/// Initializes a new instance of the <see cref="ConsistentHashingGroup"/> class.
/// </summary>
Expand Down
10 changes: 0 additions & 10 deletions src/core/Akka/Routing/RoundRobin.cs
Expand Up @@ -327,16 +327,6 @@ public RoundRobinGroup(IEnumerable<string> paths) : this(paths, Dispatchers.Defa
{
}

/// <summary>
/// Obsolete. Use <see cref="RoundRobinGroup(IEnumerable{System.String})"/> instead.
/// </summary>
/// <param name="routees">N/A</param>
[Obsolete("Use RoundRobinGroup constructor with IEnumerable<string> parameter [1.1.0]")]
public RoundRobinGroup(IEnumerable<IActorRef> routees)
: this(routees.Select(c => c.Path.ToString()))
{
}

/// <summary>
/// Initializes a new instance of the <see cref="RoundRobinGroup"/> class.
/// </summary>
Expand Down
12 changes: 0 additions & 12 deletions src/core/Akka/Routing/RouterConfig.cs
Expand Up @@ -42,12 +42,6 @@ protected RouterConfig(string routerDispatcher)
RouterDispatcher = routerDispatcher ?? Dispatchers.DefaultDispatcherId;
}

/// <summary>
/// A configuration that specifies that no router is to be used.
/// </summary>
[Obsolete("Use NoRouter.Instance instead [1.1.0]")]
public static RouterConfig NoRouter => Routing.NoRouter.Instance;

/// <summary>
/// Creates a router that is responsible for routing messages to routees within the provided <paramref name="system"/>.
/// </summary>
Expand Down Expand Up @@ -161,12 +155,6 @@ protected Group(IEnumerable<string> paths, string routerDispatcher) : base(route
/// </summary>
protected readonly string[] InternalPaths;

/// <summary>
/// Retrieves the paths of all routees declared on this router.
/// </summary>
[Obsolete("Deprecated since Akka.NET v1.1. Use Paths(ActorSystem) instead.")]
public IEnumerable<string> Paths => null;

/// <summary>
/// Retrieves the actor paths used by this router during routee selection.
/// </summary>
Expand Down
14 changes: 0 additions & 14 deletions src/core/Akka/Routing/ScatterGatherFirstCompleted.cs
Expand Up @@ -394,20 +394,6 @@ public ScatterGatherFirstCompletedGroup(IEnumerable<string> paths, TimeSpan with

}

/// <summary>
/// Obsolete. Use <see cref="ScatterGatherFirstCompletedGroup(IEnumerable{System.String}, TimeSpan)"/> instead.
/// <code>
/// new ScatterGatherFirstCompletedGroup(actorRefs.Select(c => c.Path.ToString()), within)
/// </code>
/// </summary>
/// <param name="routees">N/A</param>
/// <param name="within">N/A</param>
[Obsolete("Use new ScatterGatherFirstCompletedGroup(actorRefs.Select(c => c.Path.ToString()), within) instead [1.1.0]")]
public ScatterGatherFirstCompletedGroup(IEnumerable<IActorRef> routees, TimeSpan within)
: this(routees.Select(c => c.Path.ToString()), within, Dispatchers.DefaultDispatcherId)
{
}

/// <summary>
/// Initializes a new instance of the <see cref="ScatterGatherFirstCompletedGroup" /> class.
/// </summary>
Expand Down

0 comments on commit c513a01

Please sign in to comment.