Fixed all warnings in code.
[awesomized/libmemcached] / src / utilities.c
index ce6cd925bdc76d566ca15d4a5243d71102e32a47..c866dd54038f00960107b789786e4cdff4dbbe3a 100644 (file)
@@ -1,8 +1,5 @@
 #include <memcached.h>
 
-static char **cleanup_list= NULL;
-static char cleanup_list_length= 0;
-
 void parse_opt_servers(memcached_st *memc,
                        char *server_strings)
 {
@@ -53,25 +50,3 @@ void parse_opt_servers(memcached_st *memc,
     }
   }
 }
-
-void cleanup(void)
-{
-  unsigned int x;
-  for (x= 0; x < cleanup_list_length; x++)
-    free(cleanup_list[x]);
-
-  free(cleanup_list);
-}
-
-char *strdup_cleanup(const char *str)
-{
-  char *ptr;
-
-  ptr= strdup(str);
-
-  cleanup_list= (char **)realloc(cleanup_list, sizeof(char *) * (cleanup_list_length+1));
-  cleanup_list[cleanup_list_length]= ptr;
-  cleanup_list_length++;
-
-  return ptr;
-}