hauleth/mix_unused

Feature request: detect functions that could be made private

Closed this issue · 4 comments

Great project, thank you!

Do you think it would be possible to detect functions that are used, but only within it's own module and could thus be made private?

Technically it should be possible. I can look into this, as with all data we have I should be able to extract that data. The main problem I see is that some functions are meant to be public and used only by the current module (for example telemetry handlers or report_cb functions). So I would need to think how to make it work in most reasonable way.

I have some initial work on #24 if you are interested.

Oh wow, that was quick! I haven't even gone through our unused functions yet 😅

It got merged and scheduled for 0.4.0