Removed dead code
authoraland <aland>
Wed, 9 Jan 2008 14:10:46 +0000 (14:10 +0000)
committeraland <aland>
Wed, 9 Jan 2008 14:10:46 +0000 (14:10 +0000)
src/modules/rlm_sqlippool/rlm_sqlippool.c

index 308dc72..399556b 100644 (file)
@@ -178,9 +178,7 @@ static int sqlippool_expand(char * out, int outlen, const char * fmt, void * ins
        char *q;
        const char *p;
        char tmp[40]; /* For temporary storing of integers */
-       int openbraces;
 
-       openbraces = 0;
        q = out;
        for (p = fmt; *p ; p++) {
                int freespace;
@@ -193,15 +191,6 @@ static int sqlippool_expand(char * out, int outlen, const char * fmt, void * ins
 
                c = *p;
                if (c != '%' && c != '$' && c != '\\') {
-                       /*
-                        * We check if we're inside an open brace.  If we are
-                        * then we assume this brace is NOT literal, but is
-                        * a closing brace and apply it
-                        */
-                       if((c == '}') && openbraces) {
-                               openbraces--;
-                               continue;
-                       }
                        *q++ = *p;
                        continue;
                }