[svn-commits] branch crichter/0.4.0 r29396 - /team/crichter/0.4.0/channels/misdn_config.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Mon May 22 07:41:40 MST 2006


Author: crichter
Date: Mon May 22 09:41:39 2006
New Revision: 29396

URL: http://svn.digium.com/view/asterisk?rev=29396&view=rev
Log:
removed unneeded stuff

Modified:
    team/crichter/0.4.0/channels/misdn_config.c

Modified: team/crichter/0.4.0/channels/misdn_config.c
URL: http://svn.digium.com/view/asterisk/team/crichter/0.4.0/channels/misdn_config.c?rev=29396&r1=29395&r2=29396&view=diff
==============================================================================
--- team/crichter/0.4.0/channels/misdn_config.c (original)
+++ team/crichter/0.4.0/channels/misdn_config.c Mon May 22 09:41:39 2006
@@ -144,10 +144,6 @@
 static int *ptp;
 /* maps enum config elements to array positions */
 static int *map;
-
-#if 0
-static char **categories=NULL;
-#endif
 
 static ast_mutex_t config_mutex; 
 
@@ -523,36 +519,6 @@
 	return (p > 0) ? p : misdn_cfg_get_next_port(0);
 }
 
-#if 0
-char *misdn_cfg_get_next_group(char *group)
-{
-	char **tmpcats=categories;
-
-	for (; *tmpcats; tmpcats++)
-		if ( !strcasecmp(group, *tmpcats) ) return *tmpcats;
-	
-	return NULL;
-}
-
-
-int misdn_cfg_get_next_port_in_group(int port, char *group)
-{
-	int p = -1;
-	int gn = map[MISDN_CFG_GROUPNAME];
-	
-	misdn_cfg_lock();
-	for (port++; port <= max_ports; port++) {
-		if (port_cfg[port][gn].str && !strcasecmp(port_cfg[port][gn].str,group)) {
-			p = port;
-			break;
-		}
-	}
-	misdn_cfg_unlock();
-
-	return p;
-}
-#endif
-
 static int _parse (union misdn_cfg_pt *dest, char *value, enum misdn_cfg_type type, int boolint_def)
 {
 	int re = 0;
@@ -791,28 +757,6 @@
 		memset(general_cfg, 0, sizeof(union misdn_cfg_pt *) * NUM_GEN_ELEMENTS);
 		memset(ptp, 0, sizeof(int) * (max_ports + 1));
 	}
-#if 0
-	int cat_cnt=0;
-	for (	cat=ast_category_browse(cfg,NULL);
-		cat;
-		cat=ast_category_browse(cfg,NULL)) {
-		cat_cnt++;
-	}
-
-	if (cat_cnt) {
-		categories=malloc(cat_cnt+1);	
-		if (!categories) {
-			ast_log(LOG_ERROR,"couldn't malloc!\n");
-			return ;
-		}
-		memset(categories,0,cat_cnt);
-	} else {
-		ast_log(LOG_ERROR,"Is your misdn.conf empty?\n");
-		return ;
-	}
-
-	char **tmpcats=categories;
-#endif
 
 	cat = ast_category_browse(cfg, NULL);
 
@@ -823,11 +767,6 @@
 		} else {
 			_build_port_config(v, cat);
 		}
-#if 0	
-		*tmpcats=strdup(cat);
-		tmpcats++;
-#endif	
-		
 		cat = ast_category_browse(cfg,cat);
 	}
 



More information about the svn-commits mailing list