Explorar el Código

- removed unused code

Andrei Pelinescu-Onciul hace 19 años
padre
commit
3cfe232ae8
Se han modificado 2 ficheros con 1 adiciones y 5 borrados
  1. 1 1
      Makefile.defs
  2. 0 4
      parser/parse_event.c

+ 1 - 1
Makefile.defs

@@ -61,7 +61,7 @@ MAIN_NAME=ser
 VERSION = 0
 PATCHLEVEL = 10
 SUBLEVEL =   99
-EXTRAVERSION = -dev33
+EXTRAVERSION = -dev34
 
 SER_VER = $(shell expr $(VERSION) \* 1000000 + $(PATCHLEVEL) \* 1000 + \
 			$(SUBLEVEL) )

+ 0 - 4
parser/parse_event.c

@@ -81,7 +81,6 @@ static inline int event_parser(char* _s, int _l, event_t* _e)
 {
 	str tmp;
 	char* end;
-	char buf[128];
 
 	tmp.s = _s;
 	tmp.len = _l;
@@ -99,9 +98,6 @@ static inline int event_parser(char* _s, int _l, event_t* _e)
 
 	_e->text.len = end - tmp.s;
 
-	strncpy(buf, tmp.s, tmp.len);
-	buf[tmp.len] = 0;
-
 	if ((_e->text.len == PRES_STR_LEN) && 
 	    !strncasecmp(PRES_STR, tmp.s, _e->text.len)) {
 		_e->parsed = EVENT_PRESENCE;