summaryrefslogtreecommitdiff
path: root/lib/fileinfo.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-06-03 19:33:23 +0200
committerDaniel Stenberg <daniel@haxx.se>2011-06-03 19:33:23 +0200
commitc2eb8c932d3fafc02005d6f16c14bec7e50a2782 (patch)
treeff4a27e80fc88eeec28b58071427fba32409284a /lib/fileinfo.c
parenta6f14e17b747893295bd6805abcaeb3e9b3217e0 (diff)
downloadcurl-c2eb8c932d3fafc02005d6f16c14bec7e50a2782.tar.gz
Curl_fileinfo_dup: removed, not used
Diffstat (limited to 'lib/fileinfo.c')
-rw-r--r--lib/fileinfo.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/lib/fileinfo.c b/lib/fileinfo.c
index f5dbfce4b..5495f560d 100644
--- a/lib/fileinfo.c
+++ b/lib/fileinfo.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 2010-2011, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -55,21 +55,3 @@ void Curl_fileinfo_dtor(void *user, void *element)
free(finfo);
}
-
-struct curl_fileinfo *Curl_fileinfo_dup(const struct curl_fileinfo *src)
-{
- struct curl_fileinfo *ptr = malloc(sizeof(struct curl_fileinfo));
- if(!ptr)
- return NULL;
- *ptr = *src;
-
- ptr->b_data = malloc(src->b_size);
- if(!ptr->b_data) {
- free(ptr);
- return NULL;
- }
- else {
- memcpy(ptr->b_data, src->b_data, src->b_size);
- return ptr;
- }
-}