aboutsummaryrefslogtreecommitdiff
path: root/src/util/test_disk.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-04-25 22:27:52 +0000
committerChristian Grothoff <christian@grothoff.org>2016-04-25 22:27:52 +0000
commit7163fd6dae38f2e90b40f28f2439eeb46906739b (patch)
tree3b738bdae14559e476cf92f06d1fcc19c7018447 /src/util/test_disk.c
parent738a832406e48dadd062150c5bc2aa03cfa401ba (diff)
downloadgnunet-7163fd6dae38f2e90b40f28f2439eeb46906739b.tar.gz
gnunet-7163fd6dae38f2e90b40f28f2439eeb46906739b.zip
removing dead code
Diffstat (limited to 'src/util/test_disk.c')
-rw-r--r--src/util/test_disk.c22
1 files changed, 2 insertions, 20 deletions
diff --git a/src/util/test_disk.c b/src/util/test_disk.c
index 86b96e16c..055e155e9 100644
--- a/src/util/test_disk.c
+++ b/src/util/test_disk.c
@@ -130,23 +130,6 @@ testDirScan ()
130 return 0; 130 return 0;
131} 131}
132 132
133static void
134iter_callback (void *cls, struct GNUNET_DISK_DirectoryIterator *di,
135 const char *filename, const char *dirname)
136{
137 int *i = cls;
138
139 (*i)++;
140 GNUNET_DISK_directory_iterator_next (di, GNUNET_NO);
141}
142
143static void
144iter_task (void *cls)
145{
146 GNUNET_DISK_directory_iterator_start (GNUNET_SCHEDULER_PRIORITY_DEFAULT,
147 "test", &iter_callback, cls);
148}
149
150 133
151static int 134static int
152testDirIter () 135testDirIter ()
@@ -160,7 +143,6 @@ testDirIter ()
160 return 1; 143 return 1;
161 if (GNUNET_OK != GNUNET_DISK_directory_create ("test/entry_more")) 144 if (GNUNET_OK != GNUNET_DISK_directory_create ("test/entry_more"))
162 return 1; 145 return 1;
163 GNUNET_SCHEDULER_run (&iter_task, &i);
164 if (GNUNET_OK != GNUNET_DISK_directory_remove ("test")) 146 if (GNUNET_OK != GNUNET_DISK_directory_remove ("test"))
165 return 1; 147 return 1;
166 if (i < 3) 148 if (i < 3)
@@ -184,6 +166,7 @@ testCanonicalize ()
184 return 0; 166 return 0;
185} 167}
186 168
169
187static int 170static int
188testChangeOwner () 171testChangeOwner ()
189{ 172{
@@ -195,6 +178,7 @@ testChangeOwner ()
195 return 0; 178 return 0;
196} 179}
197 180
181
198static int 182static int
199testDirMani () 183testDirMani ()
200{ 184{
@@ -212,8 +196,6 @@ testDirMani ()
212 return 1; 196 return 1;
213 if (GNUNET_OK != GNUNET_DISK_directory_remove ("test")) 197 if (GNUNET_OK != GNUNET_DISK_directory_remove ("test"))
214 return 1; 198 return 1;
215
216
217 return 0; 199 return 0;
218} 200}
219 201