diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-04-25 22:27:52 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-04-25 22:27:52 +0000 |
commit | 7163fd6dae38f2e90b40f28f2439eeb46906739b (patch) | |
tree | 3b738bdae14559e476cf92f06d1fcc19c7018447 /src/util/test_disk.c | |
parent | 738a832406e48dadd062150c5bc2aa03cfa401ba (diff) | |
download | gnunet-7163fd6dae38f2e90b40f28f2439eeb46906739b.tar.gz gnunet-7163fd6dae38f2e90b40f28f2439eeb46906739b.zip |
removing dead code
Diffstat (limited to 'src/util/test_disk.c')
-rw-r--r-- | src/util/test_disk.c | 22 |
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 | ||
133 | static void | ||
134 | iter_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 | |||
143 | static void | ||
144 | iter_task (void *cls) | ||
145 | { | ||
146 | GNUNET_DISK_directory_iterator_start (GNUNET_SCHEDULER_PRIORITY_DEFAULT, | ||
147 | "test", &iter_callback, cls); | ||
148 | } | ||
149 | |||
150 | 133 | ||
151 | static int | 134 | static int |
152 | testDirIter () | 135 | testDirIter () |
@@ -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 | |||
187 | static int | 170 | static int |
188 | testChangeOwner () | 171 | testChangeOwner () |
189 | { | 172 | { |
@@ -195,6 +178,7 @@ testChangeOwner () | |||
195 | return 0; | 178 | return 0; |
196 | } | 179 | } |
197 | 180 | ||
181 | |||
198 | static int | 182 | static int |
199 | testDirMani () | 183 | testDirMani () |
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 | ||