From fb43ba3017d56d5c6847a6958f4b0d45f1ae5fcf Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 19 Dec 2012 10:32:41 +0200 Subject: [PATCH] network: Remove unused bnep_kill_all_connections function --- profiles/network/common.c | 28 ---------------------------- profiles/network/common.h | 1 - 2 files changed, 29 deletions(-) diff --git a/profiles/network/common.c b/profiles/network/common.c index 5a361703e..8589a3e9c 100644 --- a/profiles/network/common.c +++ b/profiles/network/common.c @@ -115,34 +115,6 @@ int bnep_kill_connection(const bdaddr_t *dst) return 0; } -int bnep_kill_all_connections(void) -{ - struct bnep_connlist_req req; - struct bnep_conninfo ci[7]; - unsigned int i; - int err; - - memset(&req, 0, sizeof(req)); - req.cnum = 7; - req.ci = ci; - if (ioctl(ctl, BNEPGETCONNLIST, &req)) { - err = -errno; - error("Failed to get connection list: %s (%d)", - strerror(-err), -err); - return err; - } - - for (i = 0; i < req.cnum; i++) { - struct bnep_conndel_req del; - - memset(&del, 0, sizeof(del)); - memcpy(del.dst, ci[i].dst, ETH_ALEN); - del.flags = 0; - ioctl(ctl, BNEPCONNDEL, &del); - } - return 0; -} - int bnep_connadd(int sk, uint16_t role, char *dev) { struct bnep_connadd_req req; diff --git a/profiles/network/common.h b/profiles/network/common.h index 682dab6ed..ca357c496 100644 --- a/profiles/network/common.h +++ b/profiles/network/common.h @@ -28,7 +28,6 @@ const char *bnep_uuid(uint16_t id); const char *bnep_name(uint16_t id); int bnep_kill_connection(const bdaddr_t *dst); -int bnep_kill_all_connections(void); int bnep_connadd(int sk, uint16_t role, char *dev); int bnep_if_up(const char *devname); -- 2.47.3