[icinga-checkins] icinga.org: icinga-core/master: remove more dead code on xdata/xodtemplate. c

git at icinga.org git at icinga.org
Wed May 19 13:41:53 CEST 2010


Module: icinga-core
Branch: master
Commit: 7f0d74276b2a264421658b1ce3ed789d658e5560
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=7f0d74276b2a264421658b1ce3ed789d658e5560

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Wed May 12 22:36:16 2010 +0200

remove more dead code on xdata/xodtemplate.c

refs #388

---

 xdata/xodtemplate.c |   21 ---------------------
 1 files changed, 0 insertions(+), 21 deletions(-)

diff --git a/xdata/xodtemplate.c b/xdata/xodtemplate.c
index 4ba1cc7..1ed7c53 100644
--- a/xdata/xodtemplate.c
+++ b/xdata/xodtemplate.c
@@ -899,7 +899,6 @@ int xodtemplate_begin_object_definition(char *input, int options, int config_fil
 	xodtemplate_hostescalation *new_hostescalation=NULL;
 	xodtemplate_hostextinfo *new_hostextinfo=NULL;
 	xodtemplate_serviceextinfo *new_serviceextinfo=NULL;
-	register int x=0;
 
 
 	if(!strcmp(input,"service"))
@@ -1291,26 +1290,6 @@ int xodtemplate_add_object_property(char *input, int options){
 			if((temp_timeperiod->alias=(char *)strdup(value))==NULL)
 				result=ERROR;
 		        }
-		/*
-		else if(!strcmp(variable,"monday") || !strcmp(variable,"tuesday") || !strcmp(variable,"wednesday") || !strcmp(variable,"thursday") || !strcmp(variable,"friday") || !strcmp(variable,"saturday") || !strcmp(variable,"sunday")){
-			if(!strcmp(variable,"monday"))
-				x=1;
-			else if(!strcmp(variable,"tuesday"))
-				x=2;
-			else if(!strcmp(variable,"wednesday"))
-				x=3;
-			else if(!strcmp(variable,"thursday"))
-				x=4;
-			else if(!strcmp(variable,"friday"))
-				x=5;
-			else if(!strcmp(variable,"saturday"))
-				x=6;
-			else
-				x=0;
-			if((temp_timeperiod->timeranges[x]=(char *)strdup(value))==NULL)
-				result=ERROR;
-		        }
-		*/
 		else if(!strcmp(variable,"exclude")){
 			if((temp_timeperiod->exclusions=(char *)strdup(value))==NULL)
 				result=ERROR;





More information about the icinga-checkins mailing list