@@ -102,9 +102,6 @@ db_get(SCR *sp, recno_t lno, u_int32_t flags, char **pp, size_t *lenp)
102102 l1 = TAILQ_FIRST (& sp -> tiq )-> lno ;
103103 l2 = TAILQ_LAST (& sp -> tiq , _texth )-> lno ;
104104 if (l1 <= lno && l2 >= lno ) {
105- #if defined(DEBUG ) && 0
106- TRACE (sp , "retrieve TEXT buffer line %lu\n" , (u_long )lno );
107- #endif /* if defined(DEBUG) && 0 */
108105 TAILQ_FOREACH (tp , & sp -> tiq , q ) {
109106 if (tp -> lno == lno )
110107 break ;
@@ -125,9 +122,6 @@ db_get(SCR *sp, recno_t lno, u_int32_t flags, char **pp, size_t *lenp)
125122
126123 /* Look-aside into the cache, and see if the line we want is there. */
127124 if (lno == ep -> c_lno ) {
128- #if defined(DEBUG ) && 0
129- TRACE (sp , "retrieve cached line %lu\n" , (u_long )lno );
130- #endif /* if defined(DEBUG) && 0 */
131125 if (lenp != NULL )
132126 * lenp = ep -> c_len ;
133127 if (pp != NULL )
@@ -158,9 +152,6 @@ err3: if (lenp != NULL)
158152 ep -> c_len = data .size ;
159153 ep -> c_lp = data .data ;
160154
161- #if defined(DEBUG ) && 0
162- TRACE (sp , "retrieve DB line %lu\n" , (u_long )lno );
163- #endif /* if defined(DEBUG) && 0 */
164155 if (lenp != NULL )
165156 * lenp = data .size ;
166157 if (pp != NULL )
@@ -180,9 +171,6 @@ db_delete(SCR *sp, recno_t lno)
180171 DBT key ;
181172 EXF * ep ;
182173
183- #if defined(DEBUG ) && 0
184- TRACE (sp , "delete line %lu\n" , (u_long )lno );
185- #endif /* if defined(DEBUG) && 0 */
186174 /* Check for no underlying file. */
187175 if ((ep = sp -> ep ) == NULL ) {
188176 ex_emsg (sp , NULL , EXM_NOFILEYET );
@@ -235,9 +223,6 @@ db_append(SCR *sp, int update, recno_t lno, char *p, size_t len)
235223 EXF * ep ;
236224 int rval ;
237225
238- #if defined(DEBUG ) && 0
239- TRACE (sp , "append to %lu: len %u {%.*s}\n" , lno , len , MIN (len , 20 ), p );
240- #endif /* if defined(DEBUG) && 0 */
241226 /* Check for no underlying file. */
242227 if ((ep = sp -> ep ) == NULL ) {
243228 ex_emsg (sp , NULL , EXM_NOFILEYET );
@@ -302,10 +287,6 @@ db_insert(SCR *sp, recno_t lno, char *p, size_t len)
302287 EXF * ep ;
303288 int rval ;
304289
305- #if defined(DEBUG ) && 0
306- TRACE (sp , "insert before %lu: len %lu {%.*s}\n" ,
307- (u_long )lno , (u_long )len , MIN (len , 20 ), p );
308- #endif /* if defined(DEBUG) && 0 */
309290 /* Check for no underlying file. */
310291 if ((ep = sp -> ep ) == NULL ) {
311292 ex_emsg (sp , NULL , EXM_NOFILEYET );
@@ -360,11 +341,6 @@ db_set(SCR *sp, recno_t lno, char *p, size_t len)
360341 DBT data , key ;
361342 EXF * ep ;
362343
363- #if defined(DEBUG ) && 0
364- TRACE (sp , "replace line %lu: len %lu {%.*s}\n" ,
365- (u_long )lno , (u_long )len , MIN (len , 20 ), p );
366- #endif /* if defined(DEBUG) && 0 */
367-
368344 /* Check for no underlying file. */
369345 if ((ep = sp -> ep ) == NULL ) {
370346 ex_emsg (sp , NULL , EXM_NOFILEYET );
0 commit comments