From ed8a4e20e55659593b2488df00143ff50c5829ea Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Wed, 16 Sep 2009 13:57:01 +0300 Subject: [PATCH] Throw out pile of unused "stuff" from 2002 --- lib/backend/db3.c | 71 ------------------------------------------------------- 1 file changed, 71 deletions(-) diff --git a/lib/backend/db3.c b/lib/backend/db3.c index d9f0c7c..27d5397 100644 --- a/lib/backend/db3.c +++ b/lib/backend/db3.c @@ -70,77 +70,6 @@ struct dbiBStats_s { unsigned int bt_over_pgfree;/*!< no. of bytes free in overflow pages. */ }; -#ifdef NOTNOW -static const char * bfstring(unsigned int x, const char * xbf) -{ - const char * s = xbf; - static char digits[] = "0123456789abcdefghijklmnopqrstuvwxyz"; - static char buf[256]; - char * t, * te; - unsigned radix; - unsigned c, i, k; - - radix = (s != NULL ? *s++ : 16); - - if (radix <= 1 || radix >= 32) - radix = 16; - - t = buf; - switch (radix) { - case 8: *t++ = '0'; break; - case 16: *t++ = '0'; *t++ = 'x'; break; - } - - i = 0; - k = x; - do { i++; k /= radix; } while (k); - - te = t + i; - - k = x; - do { --i; t[i] = digits[k % radix]; k /= radix; } while (k); - - t = te; - i = '<'; - if (s != NULL) - while ((c = *s++) != '\0') { - if (c > ' ') continue; - - k = (1 << (c - 1)); - if (!(x & k)) continue; - - if (t == te) *t++ = '='; - - *t++ = i; - i = ','; - while (*s > ' ') - *t++ = *s++; - } - if (t > te) *t++ = '>'; - *t = '\0'; - return buf; -} - -static const char * dbtFlags = - "\20\1APPMALLOC\2ISSET\3MALLOC\4PARTIAL\5REALLOC\6USERMEM\7DUPOK"; - -static const char * dbenvOpenFlags = - "\20\1CREATE\2NO_EXCEPTIONS\3FORCE\4NOMMAP\5RDONLY\6RECOVER\7THREAD\10TXN_NOSYNC\11USE_ENVIRON\12USE_ENVIRON_ROOT\13CDB\14LOCK\15LOG\16MPOOL\17TXN\20JOINENV\21LOCKDOWN\22PRIVATE\23RECOVER_FATAL\24SYSTEM_MEM"; - -static const char * dbOpenFlags = - "\20\1CREATE\2NO_EXCEPTIONS\3FORCE\4NOMMAP\5RDONLY\6RECOVER\7THREAD\10TXN_NOSYNC\11USE_ENVIRON\12USE_ENVIRON_ROOT\13EXCL\14FCNTL_LOCKING\15RDWRMASTER\16TRUNCATE\17EXTENT\20APPLY_LOGREG"; - -static const char * dbenvSetFlags = - "\20\1CREATE\2NO_EXCEPTIONS\3FORCE\4NOMMAP\5RDONLY\6RECOVER\7THREAD\10TXN_NOSYNC\11USE_ENVIRON\12USE_ENVIRON_ROOT\13CDB_ALLDB\14NOLOCKING\15NOPANIC\16PANIC_ENV\17REGION_INIT\20YIELDCPU"; - -static const char * dbSetFlags = - "\20\1DUP\2DUPSORT\3RECNUM\4RENUMBER\5REVSPLITOFF\6SNAPSHOT"; - -static const char * dbiModeFlags = - "\20\1WRONLY\2RDWR\7CREAT\10EXCL\11NOCTTY\12TRUNC\13APPEND\14NONBLOCK\15SYNC\16ASYNC\17DIRECT\20LARGEFILE\21DIRECTORY\22NOFOLLOW"; -#endif /* NOTNOW */ - - static int cvtdberr(dbiIndex dbi, const char * msg, int error, int printit) { int rc = error; -- 2.7.4