nbd-server: remove unused function
authorTuomas Jorma Juhani Räsänen <tuomasjjrasanen@opinsys.fi>
Fri, 11 Jan 2013 21:53:47 +0000 (23:53 +0200)
committerWouter Verhelst <w@uter.be>
Sat, 12 Jan 2013 11:45:20 +0000 (12:45 +0100)
Something like this might be needed in the future, once dynamic
reconfiguration has landed. But it's better to rewrite and test it then
and not keep unreferenced code hanging around cluttering the code base.

Signed-off-by: Tuomas Jorma Juhani Räsänen <tuomasjjrasanen@tjjr.fi>
nbd-server.c

index 0e5475950f0326669574f86c9d0ab08a52527892..abb647c2f2268e92380ce64a65fe7805a3a79697 100644 (file)
@@ -642,27 +642,6 @@ typedef enum {
         SETUP_ERROR_SO_KEEPALIVE,            /**< Failed to set SO_KEEPALIVE to a socket */
 } SETUP_ERRORS;
 
-/**
- * Remove a SERVER from memory. Used from the hash table
- **/
-void remove_server(gpointer s) {
-       SERVER *server;
-
-       server=(SERVER*)s;
-       g_free(server->exportname);
-       if(server->authname)
-               g_free(server->authname);
-       if(server->listenaddr)
-               g_free(server->listenaddr);
-       if(server->prerun)
-               g_free(server->prerun);
-       if(server->postrun)
-               g_free(server->postrun);
-       if(server->transactionlog)
-               g_free(server->transactionlog);
-       g_free(server);
-}
-
 /**
  * duplicate server
  * @param s the old server we want to duplicate