[sr-dev] git:master: parser: remove two blocks of old code, commented some years ago

Henning Westerholt hw at kamailio.org
Thu Jul 5 23:16:10 CEST 2012


Module: sip-router
Branch: master
Commit: 8f0f3fb39695ba52938c42ea58519485299f2fa4
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=8f0f3fb39695ba52938c42ea58519485299f2fa4

Author: Henning Westerholt <hw at kamailio.org>
Committer: Henning Westerholt <hw at kamailio.org>
Date:   Thu Jul  5 22:40:45 2012 +0200

parser: remove two blocks of old code, commented some years ago

---

 parser/msg_parser.c   |    3 ---
 parser/parse_hname2.c |   20 --------------------
 2 files changed, 0 insertions(+), 23 deletions(-)

diff --git a/parser/msg_parser.c b/parser/msg_parser.c
index ce179f5..d8247ec 100644
--- a/parser/msg_parser.c
+++ b/parser/msg_parser.c
@@ -610,9 +610,6 @@ int parse_msg(char* buf, unsigned int len, struct sip_msg* msg)
 	offset=tmp-buf;
 	fl=&(msg->first_line);
 	rest=parse_first_line(tmp, len-offset, fl);
-#if 0
-	rest=parse_fline(tmp, buf+len, fl);
-#endif
 	offset+=rest-tmp;
 	tmp=rest;
 	switch(fl->type){
diff --git a/parser/parse_hname2.c b/parser/parse_hname2.c
index 92c4782..82b6826 100644
--- a/parser/parse_hname2.c
+++ b/parser/parse_hname2.c
@@ -172,26 +172,6 @@ static inline char* skip_ws(char* p, unsigned int size)
 	        return (p + 2);    \
         }
 
-#if 0
-int hdr_update_type(struct hdr_field* hdr)
-{
-	if(hdr==0 || hdr->name.s==0)
-		return -1;
-	switch(hdr->name.len) {
-		case 19:
-			if(strncasecmp(hdr->name.s, "P-Asserted-Identity", 19)==0)
-				hdr->type = HDR_PAI_T;
-		break;
-		case 20:
-			if(strncasecmp(hdr->name.s, "P-Preferred-Identity", 20)==0)
-				hdr->type = HDR_PPI_T;
-		break;
-	}
-
-	return 0;
-}
-#endif
-
 char* parse_hname2(char* const begin, const char* const end, struct hdr_field* const hdr)
 {
 	register char* p;




More information about the sr-dev mailing list