diff options
author | Justus Winter <[email protected]> | 2017-01-31 11:09:42 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2017-01-31 17:49:27 +0000 |
commit | 92e929d4b91cbb5e36d6cb89aabf2211a7185a65 (patch) | |
tree | 34878a1f199a092d3277e7ef8e9e560ef9e87c6c /scheme.c | |
parent | gpgscm: Use a compact vector representation. (diff) | |
download | libgpg-error-92e929d4b91cbb5e36d6cb89aabf2211a7185a65.tar.gz libgpg-error-92e929d4b91cbb5e36d6cb89aabf2211a7185a65.zip |
gpgscm: Remove unused functions.
* tests/gpgscm/scheme.c (check_cell_alloced): Remove function.
(check_range_alloced): Likewise.
Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to '')
-rw-r--r-- | scheme.c | 24 |
1 files changed, 0 insertions, 24 deletions
@@ -1050,30 +1050,6 @@ static pointer get_vector_object(scheme *sc, int len, pointer init) return cells; } -#if defined TSGRIND -static void check_cell_alloced(pointer p, int expect_alloced) -{ - /* Can't use putstr(sc,str) because callers have no access to - sc. */ - if(typeflag(p) & !expect_alloced) - { - fprintf(stderr,"Cell is already allocated!\n"); - } - if(!(typeflag(p)) & expect_alloced) - { - fprintf(stderr,"Cell is not allocated!\n"); - } - -} -static void check_range_alloced(pointer p, int n, int expect_alloced) -{ - int i; - for(i = 0;i<n;i++) - { (void)check_cell_alloced(p+i,expect_alloced); } -} - -#endif - /* Medium level cell allocation */ /* get new cons cell */ |