8000 remove straggling exit method · jepler/circuitpython@ff5674c · GitHub
[go: up one dir, main page]

Skip to content

Commit ff5674c

Browse files
committed
remove straggling exit method
1 parent 1d57b86 commit ff5674c

File tree

1 file changed

+1
-6
lines changed
  • ports/zephyr-cp/bindings/zephyr_serial

1 file changed

+1
-6
lines changed

ports/zephyr-cp/bindings/zephyr_serial/UART.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,7 @@ static void check_for_deinit(zephyr_serial_uart_obj_t *self) {
8585
//| :ref:`lifetime-and-contextmanagers` for more info."""
8686
//| ...
8787
//|
88-
static mp_obj_t _zephyr_serial_uart_obj___exit__(size_t n_args, const mp_obj_t *args) {
89-
(void)n_args;
90-
zephyr_serial_uart_deinit(MP_OBJ_TO_PTR(args[0]));
91-
return mp_const_none;
92-
}
93-
static MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(_zephyr_serial_uart___exit___obj, 4, 4, _zephyr_serial_uart_obj___exit__);
88+
// Provided by context manager helper.
9489

9590
// These are standard stream methods. Code is in py/stream.c.
9691
//

0 commit comments

Comments
 (0)
0