From 5620244e0e10af4d3ab65d039ee2ae3f2f08181b Mon Sep 17 00:00:00 2001 From: John Fastabend Date: Wed, 27 Jul 2011 15:03:46 -0700 Subject: [PATCH 08/29] lldpad: remove unused exported DCBX routines Remove various DCBX routines that are not actually used. Signed-off-by: John Fastabend Signed-off-by: Petr Sabata --- dcb_protocol.c | 71 ------------------------------------------------ include/dcb_protocol.h | 6 ---- 2 files changed, 0 insertions(+), 77 deletions(-) diff --git a/dcb_protocol.c b/dcb_protocol.c index 310b071..fec437d 100644 --- a/dcb_protocol.c +++ b/dcb_protocol.c @@ -1380,21 +1380,6 @@ bool add_pg_defaults() return result; } -bool remove_pg_defaults() -{ - char sTmp[MAX_DESCRIPTION_LEN]; - - snprintf(sTmp, MAX_DESCRIPTION_LEN, DEF_CFG_STORE); - pg_it itpg = pg_find(&pg, sTmp); - if (itpg == NULL) - return false; - - /* erase and free memory */ - pg_erase(&itpg); - - return true; -} - bool add_pfc_defaults() { pfc_attribs pfc_data; @@ -1427,21 +1412,6 @@ bool add_pfc_defaults() return result; } -bool remove_pfc_defaults() -{ - char sTmp[MAX_DESCRIPTION_LEN]; - - snprintf(sTmp, MAX_DESCRIPTION_LEN, DEF_CFG_STORE); - pfc_it itpfc = pfc_find(&pfc, sTmp); - if (itpfc == NULL) - return false; - - /* erase and free memory */ - pfc_erase(&itpfc); - - return true; -} - bool add_app_defaults(u32 subtype) { app_attribs app_data; @@ -1484,22 +1454,6 @@ bool add_app_defaults(u32 subtype) return result; } -bool remove_app_defaults(u32 subtype) -{ - char sTmp[MAX_DESCRIPTION_LEN]; - - snprintf(sTmp, MAX_DESCRIPTION_LEN, "%s", DEF_CFG_STORE); - app_it it = apptlv_find(&apptlv, sTmp, subtype); - - if (it == NULL) - return false; - - /* erase and free memory */ - apptlv_erase(&it); - - return true; -} - bool add_llink_defaults(u32 subtype) { llink_attribs llink_data; @@ -1529,21 +1483,6 @@ bool add_llink_defaults(u32 subtype) return result; } -bool remove_llink_defaults(u32 subtype) -{ - char sTmp[MAX_DESCRIPTION_LEN]; - - snprintf(sTmp, MAX_DESCRIPTION_LEN, "%s", DEF_CFG_STORE); - llink_it itllink = llink_find(&llink, sTmp, subtype); - if (itllink == NULL) - return false; - - /* erase and free memory */ - llink_erase(&itllink); - - return true; -} - dcb_result get_pg(char *device_name, pg_attribs *pg_data) { dcb_result result = dcb_success; @@ -1566,16 +1505,6 @@ dcb_result get_pg(char *device_name, pg_attribs *pg_data) return result; } -dcb_result test_device_dstore(char *device_name) -{ - pg_it it = pg_find(&pg, device_name); - if (it != NULL) { - return dcb_success; - } else { - return dcb_device_not_found; - } -} - dcb_result get_oper_pg(char *device_name, pg_attribs *pg_data) { dcb_result result = dcb_success; diff --git a/include/dcb_protocol.h b/include/dcb_protocol.h index c7b4d6d..19b1bad 100644 --- a/include/dcb_protocol.h +++ b/include/dcb_protocol.h @@ -78,18 +78,12 @@ void remove_dcb_support(void); bool add_pg_defaults(void); bool add_pfc_defaults(void); bool add_app_defaults(u32 subtype); -bool remove_pg_defaults(void); -bool remove_pfc_defaults(void); -bool remove_app_defaults(u32 subtype); void mark_pg_sent(char *device_name); void mark_pfc_sent(char *device_name); void mark_app_sent(char *device_name, u32 subtype); bool add_llink_defaults(u32 subtype); -bool remove_llink_defaults(u32 subtype); void mark_llink_sent(char *device_name, u32 subtype); -dcb_result test_device_dstore(char *device_name); - dcb_result get_control(char *device_name, control_protocol_attribs *control_data); dcb_result get_peer_control(char *device_name, -- 1.7.6