From 957a3b16f041986965b05752c0107a9f1a8b7133 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 1 Jun 2023 10:09:47 -0700 Subject: [PATCH] libnetlink: drop unused rtnl_talk_iov Function was defined but not used in current iproute2 code. Signed-off-by: Stephen Hemminger --- include/libnetlink.h | 3 --- lib/libnetlink.c | 6 ------ 2 files changed, 9 deletions(-) diff --git a/include/libnetlink.h b/include/libnetlink.h index c91a22314..39ed87a79 100644 --- a/include/libnetlink.h +++ b/include/libnetlink.h @@ -177,9 +177,6 @@ int rtnl_echo_talk(struct rtnl_handle *rtnl, struct nlmsghdr *n, int json, int rtnl_talk(struct rtnl_handle *rtnl, struct nlmsghdr *n, struct nlmsghdr **answer) __attribute__((warn_unused_result)); -int rtnl_talk_iov(struct rtnl_handle *rtnl, struct iovec *iovec, size_t iovlen, - struct nlmsghdr **answer) - __attribute__((warn_unused_result)); int rtnl_talk_suppress_rtnl_errmsg(struct rtnl_handle *rtnl, struct nlmsghdr *n, struct nlmsghdr **answer) __attribute__((warn_unused_result)); diff --git a/lib/libnetlink.c b/lib/libnetlink.c index 68360b0f4..7edcd2856 100644 --- a/lib/libnetlink.c +++ b/lib/libnetlink.c @@ -1168,12 +1168,6 @@ int rtnl_talk(struct rtnl_handle *rtnl, struct nlmsghdr *n, return __rtnl_talk(rtnl, n, answer, true, NULL); } -int rtnl_talk_iov(struct rtnl_handle *rtnl, struct iovec *iovec, size_t iovlen, - struct nlmsghdr **answer) -{ - return __rtnl_talk_iov(rtnl, iovec, iovlen, answer, true, NULL); -} - int rtnl_talk_suppress_rtnl_errmsg(struct rtnl_handle *rtnl, struct nlmsghdr *n, struct nlmsghdr **answer) { -- 2.47.2