commit d8a0506987b204cefaf4041ee2b1efc605ecbedd
parent 1061e399a27ff0d40b88f73d304fa1d56985e2f0
Author: hhvn <dev@hhvn.uk>
Date: Sat, 26 Mar 2022 18:32:18 +0000
Remove serv_getbyrfd
Diffstat:
2 files changed, 0 insertions(+), 16 deletions(-)
diff --git a/src/hirc.h b/src/hirc.h
@@ -116,7 +116,6 @@ void serv_connect(struct Server *server);
struct Server * serv_create(char *name, char *host, char *port, char *nick,
char *username, char *realname, int tls, int tls_verify);
struct Server * serv_get(struct Server **head, char *name);
-struct Server * serv_get_byrfd(struct Server **head, int rfd);
struct Server * serv_add(struct Server **head, char *name, char *host,
char *port, char *nick, char *username, char *realname, int tls, int tls_verify);
int serv_len(struct Server **head);
diff --git a/src/serv.c b/src/serv.c
@@ -152,21 +152,6 @@ serv_get(struct Server **head, char *name) {
return NULL;
}
-struct Server *
-serv_get_byrfd(struct Server **head, int rfd) {
- struct Server *p;
-
- if (!head || !*head)
- return NULL;
-
- for (p = *head; p; p = p->next) {
- if (p->rfd == rfd)
- return p;
- }
-
- return NULL;
-}
-
int
serv_remove(struct Server **head, char *name) {
struct Server *p;