Skip to content

Commit bba3542

Browse files
tpwrulesdpgeorge
authored andcommitted
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 <[email protected]>
1 parent b7cfafc commit bba3542

File tree

4 files changed

+0
-95
lines changed

4 files changed

+0
-95
lines changed

extmod/lwip-include/arch/cc.h

Lines changed: 0 additions & 41 deletions
This file was deleted.

extmod/lwip-include/arch/perf.h

Lines changed: 0 additions & 7 deletions
This file was deleted.

extmod/lwip-include/lwipopts.h

Lines changed: 0 additions & 35 deletions
This file was deleted.

extmod/modlwip.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1724,18 +1724,6 @@ static MP_DEFINE_CONST_OBJ_TYPE(
17241724
locals_dict, &lwip_socket_locals_dict
17251725
);
17261726

1727-
/******************************************************************************/
1728-
// Support functions for memory protection. lwIP has its own memory management
1729-
// routines for its internal structures, and since they might be called in
1730-
// interrupt handlers, they need some protection.
1731-
sys_prot_t sys_arch_protect() {
1732-
return (sys_prot_t)MICROPY_BEGIN_ATOMIC_SECTION();
1733-
}
1734-
1735-
void sys_arch_unprotect(sys_prot_t state) {
1736-
MICROPY_END_ATOMIC_SECTION((mp_uint_t)state);
1737-
}
1738-
17391727
/******************************************************************************/
17401728
// Polling callbacks for the interfaces connected to lwIP. Right now it calls
17411729
// itself a "list" but isn't; we only support a single interface.

0 commit comments

Comments
 (0)