From 914138f2f3813e2a07929bf6f0a1a4c14c1b34bc Mon Sep 17 00:00:00 2001 From: "7u83@mail.ru" <7u83@mail.ru@noemail.net> Date: Mon, 15 Feb 2016 21:02:25 +0000 Subject: [PATCH] Removed some out-cpommented code. FossilOrigin-Name: 285df1a7553ccf3ea5ebcc40b0ffbd274209be3c4939842ee7a031b8b713e8c5 --- src/ac/wtplist.c | 51 ------------------------------------------------ 1 file changed, 51 deletions(-) diff --git a/src/ac/wtplist.c b/src/ac/wtplist.c index c7b0d7b2..b88c4c7c 100644 --- a/src/ac/wtplist.c +++ b/src/ac/wtplist.c @@ -37,13 +37,6 @@ #include "conf.h" #include "capwap/log.h" -/* -static struct wtpman ** wtplist = 0; -static pthread_mutex_t wtplist_mutex; - -static int max_wtp_connections; -*/ - static struct connlist * connlist; @@ -73,11 +66,6 @@ void wtplist_unlock() void wtplist_destroy() { connlist_destroy(connlist); - -/* if (wtplist) - free (wtplist); - pthread_mutex_destroy(&wtplist_mutex); -*/ } @@ -89,20 +77,6 @@ struct wtpman * wtplist_get(const struct sockaddr * addr) return 0; return conn->data; -/* - int i; - for (i=0; iconn->addr,addr,1)) - continue; - struct wtpman * wtpman = wtplist[i]; - return wtpman; - - } - return NULL; -*/ } @@ -110,19 +84,6 @@ struct wtpman * wtplist_add(struct wtpman * wtpman) { wtpman->conn->data=wtpman; return (struct wtpman*)connlist_add(connlist,wtpman->conn); - - -/* - int i; - for (i=0; iconn); return; -/* - printf("Remove wtpman %p\n",wtpman); - int i; - for (i=0; i