aboutsummaryrefslogtreecommitdiff
path: root/src/tests/threads/t_rcache.c
diff options
context:
space:
mode:
authorRobbie Harwood <rharwood@redhat.com>2018-07-16 15:35:15 -0400
committerGreg Hudson <ghudson@mit.edu>2018-07-18 17:21:28 -0400
commit2bc951d3c88b460a16249115cbd51d69c3c57e22 (patch)
tree8612c80b457d715c5792cf30761eea9ab9876fa6 /src/tests/threads/t_rcache.c
parentd1fb3551c0dff5c3e6555b31fcbf04ff04d577fe (diff)
downloadkrb5-2bc951d3c88b460a16249115cbd51d69c3c57e22.zip
krb5-2bc951d3c88b460a16249115cbd51d69c3c57e22.tar.gz
krb5-2bc951d3c88b460a16249115cbd51d69c3c57e22.tar.bz2
Eliminate preprocessor-disabled dead code
It's been policy for a while now not to create "dead hunks" like these. A great deal of this code simply doesn't work because it hasn't been kept up-to-date, and may never have worked. Eliminate these dead hunks along with the complexity to support them.
Diffstat (limited to 'src/tests/threads/t_rcache.c')
-rw-r--r--src/tests/threads/t_rcache.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/tests/threads/t_rcache.c b/src/tests/threads/t_rcache.c
index d6187f0..9d9b1ac 100644
--- a/src/tests/threads/t_rcache.c
+++ b/src/tests/threads/t_rcache.c
@@ -106,7 +106,6 @@ static void try_one (struct tinfo *t)
static void *run_a_loop (void *x)
{
struct tinfo t = { 0 };
-/* int chr = "ABCDEFGHIJKLMNOPQRSTUVWXYZ_"[(*(int*)x) % 27]; */
t.now = time(0);
t.idx = *(int *)x;
@@ -117,12 +116,7 @@ static void *run_a_loop (void *x)
t.now = time(0);
try_one(&t);
t.total++;
-#if 0
- printf("%c", chr);
- fflush(stdout);
-#endif
}
-/* printf("thread %u total %u\n", (unsigned) ((int *)x-ip), t.total);*/
*(int*)x = t.total;
return 0;
}