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 */