From 4978c31fd7b70b8b7932ab55adc4cd58bf01595b Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 31 Jan 2017 11:48:50 -0600 Subject: [PATCH] util: Remove unused msg_append_attr functions --- src/util.c | 13 ------------- src/util.h | 6 ------ 2 files changed, 19 deletions(-) diff --git a/src/util.c b/src/util.c index 857c1001..d56a2592 100644 --- a/src/util.c +++ b/src/util.c @@ -131,16 +131,3 @@ bool util_string_to_address(const char *str, uint8_t *addr) return true; } - -bool _msg_append_attr(struct l_genl_msg *msg, - uint16_t type, const char *type_str, - uint16_t len, const void *value) -{ - bool ret; - - ret = l_genl_msg_append_attr(msg, type, len, value); - if (!ret) - l_warn("Cannot append attr %s", type_str); - - return ret; -} diff --git a/src/util.h b/src/util.h index c8d418b0..3524ca96 100644 --- a/src/util.h +++ b/src/util.h @@ -43,10 +43,4 @@ static inline bool util_is_bit_set(const uint8_t oct, int bit) return oct & mask ? true : false; } -bool _msg_append_attr(struct l_genl_msg *msg, - uint16_t type, const char *type_str, - uint16_t len, const void *value); - -#define msg_append_attr(msg, type, len, value) \ - _msg_append_attr(msg, type, #type, len, value) #endif /* __UTIL_H */