mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-01 20:36:38 -05:00
Remove the now unused tommy_arrayblk
This commit is contained in:
parent
18f89c1a56
commit
e58621dada
6 changed files with 0 additions and 245 deletions
|
|
@ -25,7 +25,6 @@
|
|||
#include "tommyds/tommytree.h"
|
||||
#include "tommyds/tommyhashdyn.h"
|
||||
#include "tommyds/tommyarray.h"
|
||||
#include "tommyds/tommyarrayblk.h"
|
||||
#include "tommyds/tommyarrayblkof.h"
|
||||
|
||||
/****************************************************************************/
|
||||
|
|
|
|||
|
|
@ -29,7 +29,6 @@
|
|||
#include "support.h"
|
||||
#include "tommyds/tommyhash.h"
|
||||
#include "tommyds/tommyarray.h"
|
||||
#include "tommyds/tommyarrayblk.h"
|
||||
#include "tommyds/tommyarrayblkof.h"
|
||||
#include "tommyds/tommyhashdyn.h"
|
||||
|
||||
|
|
@ -344,7 +343,6 @@ static void tommy_test_foreach_arg(void* void_arg, void* obj)
|
|||
static void test_tommy(void)
|
||||
{
|
||||
tommy_array array;
|
||||
tommy_arrayblk arrayblk;
|
||||
tommy_arrayblkof arrayblkof;
|
||||
tommy_list list;
|
||||
tommy_hashdyn hashdyn;
|
||||
|
|
@ -353,12 +351,10 @@ static void test_tommy(void)
|
|||
unsigned i;
|
||||
|
||||
tommy_array_init(&array);
|
||||
tommy_arrayblk_init(&arrayblk);
|
||||
tommy_arrayblkof_init(&arrayblkof, sizeof(unsigned));
|
||||
|
||||
for (i = 0; i < TOMMY_SIZE; ++i) {
|
||||
tommy_array_insert(&array, &node[i]);
|
||||
tommy_arrayblk_insert(&arrayblk, &node[i]);
|
||||
tommy_arrayblkof_grow(&arrayblkof, i + 1);
|
||||
*(unsigned*)tommy_arrayblkof_ref(&arrayblkof, i) = i;
|
||||
}
|
||||
|
|
@ -368,11 +364,6 @@ static void test_tommy(void)
|
|||
goto bail;
|
||||
/* LCOV_EXCL_STOP */
|
||||
}
|
||||
if (tommy_arrayblk_memory_usage(&arrayblk) < TOMMY_SIZE * sizeof(void*)) {
|
||||
/* LCOV_EXCL_START */
|
||||
goto bail;
|
||||
/* LCOV_EXCL_STOP */
|
||||
}
|
||||
if (tommy_arrayblkof_memory_usage(&arrayblkof) < TOMMY_SIZE * sizeof(unsigned)) {
|
||||
/* LCOV_EXCL_START */
|
||||
goto bail;
|
||||
|
|
@ -385,11 +376,6 @@ static void test_tommy(void)
|
|||
goto bail;
|
||||
/* LCOV_EXCL_STOP */
|
||||
}
|
||||
if (tommy_arrayblk_get(&arrayblk, i) != &node[i]) {
|
||||
/* LCOV_EXCL_START */
|
||||
goto bail;
|
||||
/* LCOV_EXCL_STOP */
|
||||
}
|
||||
if (*(unsigned*)tommy_arrayblkof_ref(&arrayblkof, i) != i) {
|
||||
/* LCOV_EXCL_START */
|
||||
goto bail;
|
||||
|
|
@ -398,7 +384,6 @@ static void test_tommy(void)
|
|||
}
|
||||
|
||||
tommy_arrayblkof_done(&arrayblkof);
|
||||
tommy_arrayblk_done(&arrayblk);
|
||||
tommy_array_done(&array);
|
||||
|
||||
tommy_list_init(&list);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue