]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
server/getpart: delete unused code
authorViktor Szakats <commit@vsz.me>
Sun, 8 Sep 2024 18:28:59 +0000 (20:28 +0200)
committerViktor Szakats <commit@vsz.me>
Mon, 9 Sep 2024 14:57:36 +0000 (16:57 +0200)
Follow-up to 2610142139d14265ed9acf9ed83cdf73d6bb4d05 #8378
Closes #14829

tests/server/getpart.c

index 378c04acf088c22d61fb7fc4232d84aa6c696333..5bfaad5882b6c08a1fb891944a192d583490c392 100644 (file)
 
 #include "curlx.h" /* from the private lib dir */
 
-/* just to please curl_base64.h we create a fake struct */
-struct Curl_easy {
-  int fake;
-};
-
 #include "curl_base64.h"
 #include "curl_memory.h"
 
@@ -67,34 +62,6 @@ curl_wcsdup_callback Curl_cwcsdup = (curl_wcsdup_callback)_wcsdup;
 #endif
 
 
-/*
- * Curl_convert_clone() returns a malloced copy of the source string (if
- * returning CURLE_OK), with the data converted to network format. This
- * function is used by base64 code in libcurl built to support data
- * conversion. This is a DUMMY VERSION that returns data unmodified - for
- * use by the test server only.
- */
-CURLcode Curl_convert_clone(struct Curl_easy *data,
-                            const char *indata,
-                            size_t insize,
-                            char **outbuf);
-CURLcode Curl_convert_clone(struct Curl_easy *data,
-                            const char *indata,
-                            size_t insize,
-                            char **outbuf)
-{
-  char *convbuf;
-  (void)data;
-
-  convbuf = malloc(insize);
-  if(!convbuf)
-    return CURLE_OUT_OF_MEMORY;
-
-  memcpy(convbuf, indata, insize);
-  *outbuf = convbuf;
-  return CURLE_OK;
-}
-
 /*
  * line_length()
  *