summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2006-02-11 17:06:46 +0000
committerSimon Josefsson <simon@josefsson.org>2006-02-11 17:06:46 +0000
commita24b6aa49975ff122ecd05f31b5c07086be98835 (patch)
treef53b2eb8c408bc2c89f11f6b7e51c9f9267f81c8
parentd6f9325a15ce04bacd82a0a2b944c07a8ba67f39 (diff)
downloadlibtasn1-a24b6aa49975ff122ecd05f31b5c07086be98835.tar.gz
libtasn1-a24b6aa49975ff122ecd05f31b5c07086be98835.tar.bz2
libtasn1-a24b6aa49975ff122ecd05f31b5c07086be98835.zip
Remove unused code.
-rw-r--r--lib/gstr.c12
-rw-r--r--lib/gstr.h1
2 files changed, 0 insertions, 13 deletions
diff --git a/lib/gstr.c b/lib/gstr.c
index 65627d6..7946b3e 100644
--- a/lib/gstr.c
+++ b/lib/gstr.c
@@ -54,15 +54,3 @@ size_t str_size = strlen(src);
}
}
}
-
-void _asn1_mem_cpy( char* dest, size_t dest_tot_size, const char* src, size_t src_size)
-{
-
- if ( dest_tot_size >= src_size) {
- memcpy( dest, src, src_size);
- } else {
- if ( dest_tot_size > 0) {
- memcpy( dest, src, dest_tot_size);
- }
- }
-}
diff --git a/lib/gstr.h b/lib/gstr.h
index ad3a5d4..5508d26 100644
--- a/lib/gstr.h
+++ b/lib/gstr.h
@@ -1,5 +1,4 @@
void _asn1_str_cpy( char* dest, size_t dest_tot_size, const char* src);
-void _asn1_mem_cpy( char* dest, size_t dest_tot_size, const char* src, size_t src_size);
void _asn1_str_cat( char* dest, size_t dest_tot_size, const char* src);
#define Estrcpy(x,y) _asn1_str_cpy(x,MAX_ERROR_DESCRIPTION_SIZE,y)