diff options
| author | Thomas Watson <twatson52@icloud.com> | 2025-08-13 12:37:23 -0500 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2025-08-16 14:52:52 +1000 |
| commit | bba354201809dd715287fd32c85818a23f978d97 (patch) | |
| tree | 3174201c7c0ba36d21e49e5df936728bf9b398c3 /extmod/modlwip.c | |
| parent | b7cfafc1ee5c0bf8148cb27c6b82a597c3a1aae0 (diff) | |
extmod/modlwip: Remove unused include and functions.
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>
Diffstat (limited to 'extmod/modlwip.c')
| -rw-r--r-- | extmod/modlwip.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/extmod/modlwip.c b/extmod/modlwip.c index 26aab6e81..4b1c1b8f3 100644 --- a/extmod/modlwip.c +++ b/extmod/modlwip.c @@ -1725,18 +1725,6 @@ static MP_DEFINE_CONST_OBJ_TYPE( ); /******************************************************************************/ -// Support functions for memory protection. lwIP has its own memory management -// routines for its internal structures, and since they might be called in -// interrupt handlers, they need some protection. -sys_prot_t sys_arch_protect() { - return (sys_prot_t)MICROPY_BEGIN_ATOMIC_SECTION(); -} - -void sys_arch_unprotect(sys_prot_t state) { - MICROPY_END_ATOMIC_SECTION((mp_uint_t)state); -} - -/******************************************************************************/ // Polling callbacks for the interfaces connected to lwIP. Right now it calls // itself a "list" but isn't; we only support a single interface. |
