Skip to content

Commit

Permalink
Remove invalid dynamic dependency attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrozsival committed Aug 24, 2023
1 parent 2f89e5b commit 24372c6
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tools/dotnet-linker/ApplyPreserveAttributeBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,6 @@ void PreserveUnconditional (IMetadataTokenProvider provider)
{
Annotations.Mark (provider);
AddDynamicDependencyAttribute (provider);

var member = provider as IMemberDefinition;
if (member is null || member.DeclaringType is null)
return;

Mark (member.DeclaringType, null);
}

void TryApplyPreserveAttribute (TypeDefinition type)
Expand Down

0 comments on commit 24372c6

Please sign in to comment.