Skip to content

[fix-finder] Remove unused using directives in ELFHelper.cs and TypeMappingStep.cs #11511

@github-actions

Description

@github-actions

Problem

Several source files contain using directives for namespaces that are never referenced, adding unnecessary noise and potentially slowing down IDE analysis.

Location

  • File: src/Xamarin.Android.Build.Tasks/Utilities/ELFHelper.cs

    • using System.Collections.Concurrent; (line 3) — no Concurrent* types are used
    • using System.Text; (line 4) — no StringBuilder or Encoding usage
  • File: src/Microsoft.Android.Sdk.ILLink/TypeMappingStep.cs

    • using System.Runtime.Loader; (line 6) — no AssemblyLoadContext usage; assembly loading uses System.Reflection.Assembly.LoadFile
    • using System.Text; (line 7) — no StringBuilder or Encoding usage

Suggested Fix

Remove the four unused using directives listed above.

Guidelines

  • Keep all other using directives intact
  • Follow existing formatting (no blank-line changes)
  • Verify the project still builds after removal

Acceptance Criteria

  • The four unused using directives are removed
  • Both projects build successfully
  • No new warnings introduced

Generated by Nightly Fix Finder · ● 8.7M ·

  • expires on Jun 3, 2026, 2:31 AM UTC

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions