Skip to content

extmod/modlwip: Remove unused include and functions. #17915

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 16, 2025

Conversation

tpwrules
Copy link
Contributor

Summary

The lwipopts.h is now port-specific.

The sys_arch_{,un}protect functions are not used according to line 34 of extmod/lwip-include/lwipopts_common.h.

Neither have been touched in nearly a decade.

Testing

Ensured that W5500-EVB-Pico builds and the resulting binary is unchanged.

Copy link

codecov bot commented Aug 13, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.38%. Comparing base (b7cfafc) to head (bba3542).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #17915   +/-   ##
=======================================
  Coverage   98.38%   98.38%           
=======================================
  Files         171      171           
  Lines       22297    22297           
=======================================
  Hits        21938    21938           
  Misses        359      359           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link

Code size report:

   bare-arm:    +0 +0.000% 
minimal x86:    +0 +0.000% 
   unix x64:    +0 +0.000% standard
      stm32:    +0 +0.000% PYBV10
     mimxrt:    +0 +0.000% TEENSY40
        rp2:    +0 +0.000% RPI_PICO_W
       samd:    +0 +0.000% ADAFRUIT_ITSYBITSY_M4_EXPRESS
  qemu rv32:    +0 +0.000% VIRT_RV32

@dpgeorge dpgeorge added the extmod Relates to extmod/ directory in source label Aug 14, 2025
@tpwrules
Copy link
Contributor Author

For clarity the motivation for this PR is that I was chasing down some problems and got led down the wrong path because I thought this stuff was still used. So removing it will avoid that chance for others in the future.

Copy link
Member

@dpgeorge dpgeorge left a comment

Choose a reason for hiding this comment

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

Thanks for the clean up, this looks good.

(Long ago, it was possible to build the unix port with lwIP support, and use SLIP to create network interfaces, but that support seems to be long lost.)

@dpgeorge
Copy link
Member

Actually, I think extmod/lwip-include/arch/* can also be removed. Could you do that in this PR as well?

@tpwrules
Copy link
Contributor Author

Done.

The lwIP includes are now port-specific.

The `sys_arch_{,un}protect` functions are not used according to line 34
of `extmod/lwip-include/lwipopts_common.h`.

Neither have been touched in nearly a decade.

Signed-off-by: Thomas Watson <twatson52@icloud.com>
@dpgeorge
Copy link
Member

Thanks for updating.

@dpgeorge dpgeorge merged commit bba3542 into micropython:master Aug 16, 2025
67 of 69 checks passed
@tpwrules tpwrules deleted the pr/lwip-cruft branch August 16, 2025 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extmod Relates to extmod/ directory in source
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants