Skip to content

Remove dead code from info_list/InfoItemBuilder#13137

Merged
theimpulson merged 1 commit intoTeamNewPipe:devfrom
dustdfg:info_item_builder_dead
Feb 8, 2026
Merged

Remove dead code from info_list/InfoItemBuilder#13137
theimpulson merged 1 commit intoTeamNewPipe:devfrom
dustdfg:info_item_builder_dead

Conversation

@dustdfg
Copy link
Contributor

@dustdfg dustdfg commented Jan 29, 2026

What is it?

  • Codebase improvement (dev facing)
  • Meta improvement to the project (dev facing)

Description of the changes in your PR

  • Remove dead code from info_list/InfoItemBuilder
    It no longer really builds any view and used only for storing click gesture callbacks. In the same way like local/LocalItemBuilder does

Last usage of build functions: 2e9a860

  • Also convert class to kotlin to remove boilerpolate

APK testing

The APK can be found by going to the "Checks" tab below the title. On the left pane, click on "CI", scroll down to "artifacts" and click "app" to download the zip file which contains the debug APK of this PR. You can find more info and a video demonstration on this wiki page.

Due diligence

It no longer really builds any view and used only for stroing click
gesture callbacks. In the same way lik local/LocalItemBuilder does

Last usage of build functions: 2e9a860
@github-actions github-actions bot added the size/medium PRs with less than 250 changed lines label Jan 29, 2026
@ShareASmile ShareASmile added the codequality Improvements to the codebase to improve the code quality label Jan 29, 2026
@TobiGr
Copy link
Contributor

TobiGr commented Feb 6, 2026

I'd suggest to rename it to something more fitting as it isn't a builder anymore. InfoItemClickListener might be a better name.

@dustdfg
Copy link
Contributor Author

dustdfg commented Feb 6, 2026

I'd suggest to rename it to something more fitting as it isn't a builder anymore. InfoItemClickListener might be a better name.

I also though about it but as I said we have one more "Builder" which holds only listeners too. And the listeners are static IIRC so these two "builders" probably could be eliminated at all... So I decided to leave it as builders so they are giving you more pain when you look at them so easier to spot... Very weird but...

Copy link
Member

@theimpulson theimpulson left a comment

Choose a reason for hiding this comment

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

Thanks, looks good to me

@theimpulson theimpulson merged commit dab8e05 into TeamNewPipe:dev Feb 8, 2026
8 checks passed
@dustdfg dustdfg deleted the info_item_builder_dead branch February 8, 2026 15:47
@TobiGr TobiGr mentioned this pull request Feb 28, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

codequality Improvements to the codebase to improve the code quality size/medium PRs with less than 250 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants