summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHardy Griech <[email protected]>2023-08-11 18:04:34 +0200
committerHardy Griech <[email protected]>2023-08-11 18:04:34 +0200
commit798ff807b3361a5859945cb23c3d0fd7d1a5679f (patch)
tree71f02159329d7cb0309a17e4c21e7f25a8aeb83b
parent92457ec99f1690b772ef9fa6b348256701c7fcf7 (diff)
removed obsolete tud_network_link_state_cb()
-rw-r--r--src/class/net/ncm_device.c7
-rw-r--r--src/class/net/net_device.h5
-rw-r--r--test/fuzz/net_fuzz.cc10
3 files changed, 1 insertions, 21 deletions
diff --git a/src/class/net/ncm_device.c b/src/class/net/ncm_device.c
index 226c42c4e..dc086cf5c 100644
--- a/src/class/net/ncm_device.c
+++ b/src/class/net/ncm_device.c
@@ -337,11 +337,6 @@ static void ncm_report(void)
}
}
-TU_ATTR_WEAK void tud_network_link_state_cb(bool state)
-{
- (void)state;
-}
-
// Handle class control request
// return false to stall control endpoint (e.g unsupported request)
bool netd_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb_control_request_t const * request)
@@ -381,8 +376,6 @@ bool netd_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb_control_request_t
ncm_report();
}
}
-
- tud_network_link_state_cb(ncm_interface.itf_data_alt);
}
tud_control_status(rhport, request);
diff --git a/src/class/net/net_device.h b/src/class/net/net_device.h
index 399916355..454fde861 100644
--- a/src/class/net/net_device.h
+++ b/src/class/net/net_device.h
@@ -96,11 +96,6 @@ void tud_network_init_cb(void);
// TODO removed later since it is not part of tinyusb stack
extern uint8_t tud_network_mac_address[6];
-//------------- NCM -------------//
-
-// callback to client providing optional indication of internal state of network driver
-void tud_network_link_state_cb(bool state);
-
//--------------------------------------------------------------------+
// INTERNAL USBD-CLASS DRIVER API
//--------------------------------------------------------------------+
diff --git a/test/fuzz/net_fuzz.cc b/test/fuzz/net_fuzz.cc
index 63cd1ac98..468437b0c 100644
--- a/test/fuzz/net_fuzz.cc
+++ b/test/fuzz/net_fuzz.cc
@@ -69,14 +69,6 @@ void tud_network_init_cb(void) {
// TODO removed later since it is not part of tinyusb stack
uint8_t tud_network_mac_address[6] = {0};
-//------------- NCM -------------//
-
-// callback to client providing optional indication of internal state of network
-// driver
-void tud_network_link_state_cb(bool state) {
- (void)state;
- // NoOp.
-}
-}
+} // extern "C"
#endif