Skip to content

Commit

Permalink
Removed UsesInstance from the InstanceAttribute.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Jun 24, 2024
1 parent 005574c commit d91776d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/Magick.NET.SourceGenerator/Helpers/MethodInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ public MethodInfo(SemanticModel semanticModel, MethodDeclarationSyntax method)

if (instanceAttribute is not null)
{
UsesInstance = instanceAttribute.GetArgumentValue(nameof(InstanceAttribute.UsesInstance)) != "false";
SetsInstance = instanceAttribute.GetArgumentValue(nameof(InstanceAttribute.SetsInstance)) != "false";
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,4 @@ namespace ImageMagick.SourceGenerator;
internal sealed class InstanceAttribute : Attribute
{
public bool SetsInstance { get; set; } = true;

public bool UsesInstance { get; set; } = true;
}

0 comments on commit d91776d

Please sign in to comment.