MXS-1392 Remove dcb_free

Not used and with reference counting it must not be available either.
This commit is contained in:
Johan Wikman 2017-09-07 13:52:19 +03:00
parent 7e17e2cd56
commit bf42d845cf
2 changed files with 0 additions and 13 deletions

View File

@ -216,7 +216,6 @@ void dcb_global_init();
int dcb_write(DCB *, GWBUF *);
DCB *dcb_accept(DCB *listener);
DCB *dcb_alloc(dcb_role_t, struct servlistener *);
void dcb_free(DCB *);
void dcb_free_all_memory(DCB *dcb);
DCB *dcb_connect(struct server *, struct session *, const char *);
int dcb_read(DCB *, GWBUF **, int);

View File

@ -202,18 +202,6 @@ dcb_alloc(dcb_role_t role, SERV_LISTENER *listener)
return newdcb;
}
/**
* Provided only for consistency, simply calls dcb_close to guarantee
* safe disposal of a DCB
*
* @param dcb The DCB to free
*/
void
dcb_free(DCB *dcb)
{
dcb_close(dcb);
}
/**
* Free a DCB and remove it from the chain of all DCBs
*