Skip to content

Remove dead code after minSdk was bump to 19#983

Merged
copybara-service[bot] merged 12 commits intoandroidx:mainfrom
MGaetan89:min_api_19
Feb 15, 2024
Merged

Remove dead code after minSdk was bump to 19#983
copybara-service[bot] merged 12 commits intoandroidx:mainfrom
MGaetan89:min_api_19

Conversation

@MGaetan89
Copy link
Copy Markdown
Contributor

@MGaetan89 MGaetan89 commented Jan 16, 2024

Now that this project supports API 19 and newer, some code could be simplified/removed, which is what this PR is about:

  • Remove unnecessary SDK_INT checks
  • Remove unnecessary @RequiresApi
  • Remove unnecessary @TargetApi
  • Remove some superfluous classes
import java.lang.reflect.Method;

/** Utilities for {@link Bundle}. */
@UnstableApi
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this class is marked as @UnstableApi, I think it's safe to delete it. If you prefer to deprecate it first, let me know, and I'll update my PR.

@icbaker icbaker self-assigned this Jan 16, 2024
@icbaker icbaker self-requested a review January 16, 2024 13:22
@MGaetan89 MGaetan89 force-pushed the min_api_19 branch 3 times, most recently from 014dd08 to 4c3046e Compare January 23, 2024 07:45
@MGaetan89
Copy link
Copy Markdown
Contributor Author

I've fixed the conflict in DownloadTracker

@icbaker
Copy link
Copy Markdown
Collaborator

icbaker commented Feb 8, 2024

I'm going to send this for internal review now. You may see some more commits being added as I make changes in response to review feedback. Please refrain from pushing any more substantive changes as it will complicate the internal review - thanks!

@copybara-service copybara-service bot merged commit fb74383 into androidx:main Feb 15, 2024
@MGaetan89 MGaetan89 deleted the min_api_19 branch February 15, 2024 15:09
@androidx androidx locked and limited conversation to collaborators Apr 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

2 participants