parser: remove two blocks of old code, commented some years ago
authorHenning Westerholt <hw@kamailio.org>
Thu, 5 Jul 2012 20:40:45 +0000 (22:40 +0200)
committerHenning Westerholt <hw@kamailio.org>
Thu, 5 Jul 2012 21:15:49 +0000 (23:15 +0200)
parser/msg_parser.c
parser/parse_hname2.c

index ce179f5..d8247ec 100644 (file)
@@ -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){
index 92c4782..82b6826 100644 (file)
@@ -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;