summaryrefslogtreecommitdiff
path: root/common/src/tfe_utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/src/tfe_utils.cpp')
-rw-r--r--common/src/tfe_utils.cpp37
1 files changed, 0 insertions, 37 deletions
diff --git a/common/src/tfe_utils.cpp b/common/src/tfe_utils.cpp
index 61d7c9b..8f2fd38 100644
--- a/common/src/tfe_utils.cpp
+++ b/common/src/tfe_utils.cpp
@@ -226,41 +226,4 @@ int tfe_decode_base64url(u_char *dst, u_char *src)
};
return tfe_decode_base64_internal(dst, src, basis64);
-}
-
-char *tfe_unescape(char *s)
-{
- int i=0,j=0;
- int len=strlen(s);
- for(i=0,j=0;i<len;i++)
- {
- if(s[i]=='\\')
- {
- switch(s[i+1])
- {
- case '&':
- s[j]='&';
- break;
- case 'b':
- s[j]=' ';//space,0x20;
- break;
- case '\\':
- s[j]='\\';
- break;
- default:
- s[j]=s[i];
- i--; //undo the followed i++
- break;
- }
- i++;
- j++;
- }
- else
- {
- s[j]=s[i];
- j++;
- }
- }
- s[j]='\0';
- return s;
} \ No newline at end of file