Skip to content

Commit 61bf4a1

Browse files
committed
nrf: Remove unused ubluepy classes
1 parent 1c6bf9a commit 61bf4a1

File tree

5 files changed

+0
-154
lines changed

5 files changed

+0
-154
lines changed

ports/nrf/Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,6 @@ DRIVERS_SRC_C += $(addprefix modules/,\
132132
ubluepy/ubluepy_peripheral.c \
133133
ubluepy/ubluepy_service.c \
134134
ubluepy/ubluepy_characteristic.c \
135-
ubluepy/ubluepy_delegate.c \
136-
ubluepy/ubluepy_constants.c \
137135
)
138136

139137
SRC_COMMON_HAL += \

ports/nrf/modules/ubluepy/modubluepy.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,24 +31,16 @@
3131
extern const mp_obj_type_t ubluepy_peripheral_type;
3232
extern const mp_obj_type_t ubluepy_service_type;
3333
extern const mp_obj_type_t ubluepy_characteristic_type;
34-
extern const mp_obj_type_t ubluepy_delegate_type;
35-
extern const mp_obj_type_t ubluepy_constants_type;
3634

3735
STATIC const mp_rom_map_elem_t mp_module_ubluepy_globals_table[] = {
3836
{ MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_ubluepy) },
3937
#if MICROPY_PY_UBLUEPY_PERIPHERAL
4038
{ MP_ROM_QSTR(MP_QSTR_Peripheral), MP_ROM_PTR(&ubluepy_peripheral_type) },
4139
#endif
42-
#if 0 // MICROPY_PY_UBLUEPY_CENTRAL
43-
{ MP_ROM_QSTR(MP_QSTR_Central), MP_ROM_PTR(&ubluepy_central_type) },
44-
#endif
45-
{ MP_ROM_QSTR(MP_QSTR_DefaultDelegate), MP_ROM_PTR(&ubluepy_delegate_type) },
4640
{ MP_ROM_QSTR(MP_QSTR_Service), MP_ROM_PTR(&ubluepy_service_type) },
4741
{ MP_ROM_QSTR(MP_QSTR_Characteristic), MP_ROM_PTR(&ubluepy_characteristic_type) },
48-
{ MP_ROM_QSTR(MP_QSTR_constants), MP_ROM_PTR(&ubluepy_constants_type) },
4942
};
5043

51-
5244
STATIC MP_DEFINE_CONST_DICT(mp_module_ubluepy_globals, mp_module_ubluepy_globals_table);
5345

5446
const mp_obj_module_t mp_module_ubluepy = {

ports/nrf/modules/ubluepy/modubluepy.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ p.advertise(device_name="micr", services=[s])
7777
extern const mp_obj_type_t ubluepy_service_type;
7878
extern const mp_obj_type_t ubluepy_characteristic_type;
7979
extern const mp_obj_type_t ubluepy_peripheral_type;
80-
extern const mp_obj_type_t ubluepy_constants_type;
81-
extern const mp_obj_type_t ubluepy_constants_ad_types_type;
8280

8381
typedef enum {
8482
UBLUEPY_SERVICE_PRIMARY = 1,
@@ -132,10 +130,6 @@ typedef struct _ubluepy_characteristic_obj_t {
132130
mp_obj_t value_data;
133131
} ubluepy_characteristic_obj_t;
134132

135-
typedef struct _ubluepy_delegate_obj_t {
136-
mp_obj_base_t base;
137-
} ubluepy_delegate_obj_t;
138-
139133
typedef struct _ubluepy_advertise_data_t {
140134
uint8_t * p_device_name;
141135
uint8_t device_name_len;

ports/nrf/modules/ubluepy/ubluepy_constants.c

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

ports/nrf/modules/ubluepy/ubluepy_delegate.c

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

0 commit comments

Comments
 (0)