From: Denis Kenzior <denkenz@gmail.com>
To: connman@lists.linux.dev
Cc: Denis Kenzior <denkenz@gmail.com>
Subject: [PATCH 1/6] vpn: Remove unused __vpn_provider_check_routes
Date: Sat, 30 Sep 2023 17:25:52 -0500 [thread overview]
Message-ID: <20230930222615.654178-1-denkenz@gmail.com> (raw)
__vpn_provider_check_routes isn't used anywhere. Remove it.
---
vpn/vpn-provider.c | 16 ----------------
vpn/vpn.h | 1 -
2 files changed, 17 deletions(-)
diff --git a/vpn/vpn-provider.c b/vpn/vpn-provider.c
index cc325967..4bcb8373 100644
--- a/vpn/vpn-provider.c
+++ b/vpn/vpn-provider.c
@@ -2952,22 +2952,6 @@ void vpn_provider_set_auth_error_limit(struct vpn_provider *provider,
provider->auth_error_limit = limit;
}
-bool __vpn_provider_check_routes(struct vpn_provider *provider)
-{
- if (!provider)
- return false;
-
- if (provider->user_routes &&
- g_hash_table_size(provider->user_routes) > 0)
- return true;
-
- if (provider->routes &&
- g_hash_table_size(provider->routes) > 0)
- return true;
-
- return false;
-}
-
void *vpn_provider_get_data(struct vpn_provider *provider)
{
return provider->driver_data;
diff --git a/vpn/vpn.h b/vpn/vpn.h
index 477cb227..dafb40c3 100644
--- a/vpn/vpn.h
+++ b/vpn/vpn.h
@@ -73,7 +73,6 @@ void __vpn_ipconfig_cleanup(void);
#include "vpn-provider.h"
char *__vpn_provider_create_identifier(const char *host, const char *domain);
-bool __vpn_provider_check_routes(struct vpn_provider *provider);
int __vpn_provider_append_user_route(struct vpn_provider *provider,
int family, const char *network,
const char *netmask, const char *gateway);
--
2.42.0
next reply other threads:[~2023-09-30 22:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-30 22:25 Denis Kenzior [this message]
2023-09-30 22:25 ` [PATCH 2/6] network: Remove unused functions Denis Kenzior
2023-09-30 22:25 ` [PATCH 3/6] service: " Denis Kenzior
2023-09-30 22:25 ` [PATCH 4/6] " Denis Kenzior
2023-09-30 22:25 ` [PATCH 5/6] vpn: " Denis Kenzior
2023-09-30 22:25 ` [PATCH 6/6] vpn: Remove vpn_rtnl_register & vpn_rtnl_unregister Denis Kenzior
2023-11-07 15:09 ` [PATCH 1/6] vpn: Remove unused __vpn_provider_check_routes Marcel Holtmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230930222615.654178-1-denkenz@gmail.com \
--to=denkenz@gmail.com \
--cc=connman@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).