Commit a61a4869 authored by Barry Perlman's avatar Barry Perlman Committed by Yoni Fogel

Closes [t:2740] Delete rot13 of inames.

git-svn-id: file:///svn/toku/tokudb@21289 c7de825b-a66e-492c-adef-691d508d4ae1
parent c3756770
......@@ -4336,21 +4336,6 @@ db_open_subdb(DB * db, DB_TXN * txn, const char *fname, const char *dbname, DBTY
return r;
}
static inline char
rot13(char c) {
char r;
char a;
if (isupper(c)) {
a = 'A';
}
else {
assert(islower(c));
a = 'a';
}
r = (c - a + 13) % 26 + a;
return r;
}
static void
create_iname_hint(const char *dname, char *hint) {
//Requires: size of hint array must be > strlen(dname)
......@@ -4360,9 +4345,6 @@ create_iname_hint(const char *dname, char *hint) {
while (*dname) {
if (isalnum(*dname)) {
char c = *dname++;
if (isupper(c) || islower(c)) {
c = rot13(c);
}
*hint++ = c;
underscored = FALSE;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment