rr: remove out commented is_2rr function, not compiled since more than two years
authorHenning Westerholt <henning.westerholt@1und1.de>
Sun, 4 Sep 2011 20:14:09 +0000 (22:14 +0200)
committerHenning Westerholt <henning.westerholt@1und1.de>
Sun, 4 Sep 2011 20:14:09 +0000 (22:14 +0200)
modules_k/rr/loose.c

index 9cf1ef9..53a52d6 100644 (file)
@@ -113,90 +113,6 @@ static inline int find_first_route(struct sip_msg* _m)
 
 
 /*!
- * \brief Find out if a URI contains r2 parameter which indicates that we put 2 record routes
- * \param _params URI
- * \return 1 if URI contains a r2 parameter, 0 otherwise
- */
-/*
-static inline int is_2rr(str* _params)
-{
-       str s;
-       int i, state = 0;
-
-       if (_params->len == 0) return 0;
-       s = *_params;
-
-       for(i = 0; i < s.len; i++) {
-               switch(state) {
-               case 0:
-                       switch(s.s[i]) {
-                       case ' ':
-                       case '\r':
-                       case '\n':
-                       case '\t':           break;
-                       case 'r':
-                       case 'R': state = 1; break;
-                       default:  state = 4; break;
-                       }
-                       break;
-
-               case 1:
-                       switch(s.s[i]) {
-                       case '2': state = 2; break;
-                       default:  state = 4; break;
-                       }
-                       break;
-
-               case 2:
-                       switch(s.s[i]) {
-                       case ';':  return 1;
-                       case '=':  return 1;
-                       case ' ':
-                       case '\r':
-                       case '\n':
-                       case '\t': state = 3; break;
-                       default:   state = 4; break;
-                       }
-                       break;
-
-               case 3:
-                       switch(s.s[i]) {
-                       case ';':  return 1;
-                       case '=':  return 1;
-                       case ' ':
-                       case '\r':
-                       case '\n':
-                       case '\t': break;
-                       default:   state = 4; break;
-                       }
-                       break;
-
-               case 4:
-                       switch(s.s[i]) {
-                       case '\"': state = 5; break;
-                       case ';':  state = 0; break;
-                       default:              break;
-                       }
-                       break;
-                       
-               case 5:
-                       switch(s.s[i]) {
-                       case '\\': state = 6; break;
-                       case '\"': state = 4; break;
-                       default:              break;
-                       }
-                       break;
-
-               case 6: state = 5; break;
-               }
-       }
-       
-       if ((state == 2) || (state == 3)) return 1;
-       else return 0;
-}
-*/
-
-/*!
  * \brief Check if URI is myself
  * \param _host host
  * \param _port port