[sr-dev] git:master: rr: remove out commented is_2rr function, not compiled since more than two years

Henning Westerholt henning.westerholt at 1und1.de
Sun Sep 4 22:32:40 CEST 2011


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

Author: Henning Westerholt <henning.westerholt at 1und1.de>
Committer: Henning Westerholt <henning.westerholt at 1und1.de>
Date:   Sun Sep  4 22:14:09 2011 +0200

rr: remove out commented is_2rr function, not compiled since more than two years

---

 modules_k/rr/loose.c |   84 --------------------------------------------------
 1 files changed, 0 insertions(+), 84 deletions(-)

diff --git a/modules_k/rr/loose.c b/modules_k/rr/loose.c
index 9cf1ef9..53a52d6 100644
--- a/modules_k/rr/loose.c
+++ b/modules_k/rr/loose.c
@@ -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




More information about the sr-dev mailing list