Bouni / kicad-jlcpcb-tools

Plugin to generate BOM + CPL files for JLCPCB, assigning LCSC part numbers directly from the plugin, query the JLCPCB parts database, lookup datasheets and much more.
MIT License
1.2k stars 109 forks source link

Eliminate all dead code #521

Closed Bouni closed 3 months ago

Bouni commented 3 months ago

I was aware that there are a lot of unused fuctions and vataibles throughout the code.

So I used deadcode to find all unused functions and remove them.

In places where we overload functions I added # noqa comments

Bouni commented 3 months ago

I decided to add deadcode to the CI so no more dead code can occure. There is a problem with the pre-commit-hook for it, so I commented that for now and opened an issue (https://github.com/albertas/deadcode/issues/16)