Skip to content

Commit

Permalink
Reverted #701 for v4.5.2 as this is a patch release. #701 will be app…
Browse files Browse the repository at this point in the history
…lied to v4.6.
  • Loading branch information
dotnetjunkie committed May 6, 2019
1 parent 1b012f4 commit d944ab2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/SimpleInjector.Tests.Unit/DecoratorTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2537,9 +2537,7 @@ public void ScopedDecoratoreeFactory_SuppliedWithContainerlessScope_ThrowsDescri
var proxy = (ScopedPluginProxy)container.GetInstance<IPlugin>();
Func<Scope, IPlugin> factory = proxy.Factory;

#pragma warning disable CS0618 // Type or member is obsolete
var containerlessScope = new Scope();
#pragma warning restore CS0618 // Type or member is obsolete

// Act
Action action = () => factory(containerlessScope);
Expand Down
3 changes: 0 additions & 3 deletions src/SimpleInjector/Scope.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ public class Scope : ApiObject, IDisposable
private int recursionDuringDisposalCounter;

/// <summary>Initializes a new instance of the <see cref="Scope"/> class.</summary>
[Obsolete("Use the overloaded Scope(Container) constructor instead. " +
"Will be treated as an error from version 5.0. Will be removed in version 6.0.",
error: false)]
public Scope()
{
}
Expand Down

0 comments on commit d944ab2

Please sign in to comment.