From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Vladimir Davydov Subject: [RFC PATCH 01/12] recovery: drop unused recovery_exit Date: Wed, 6 Jun 2018 20:45:01 +0300 Message-Id: In-Reply-To: References: In-Reply-To: References: To: kostja@tarantool.org Cc: tarantool-patches@freelists.org List-ID: --- src/box/recovery.cc | 8 -------- src/box/recovery.h | 4 ---- 2 files changed, 12 deletions(-) diff --git a/src/box/recovery.cc b/src/box/recovery.cc index f8ec3971..a5e0ad34 100644 --- a/src/box/recovery.cc +++ b/src/box/recovery.cc @@ -169,14 +169,6 @@ recovery_delete(struct recovery *r) free(r); } -void -recovery_exit(struct recovery *r) -{ - /* Avoid fibers, there is no event loop */ - r->watcher = NULL; - recovery_delete(r); -} - /** * Read all rows in a file starting from the last position. * Advance the position. If end of file is reached, diff --git a/src/box/recovery.h b/src/box/recovery.h index 562a1fbb..b7e4a312 100644 --- a/src/box/recovery.h +++ b/src/box/recovery.h @@ -68,10 +68,6 @@ recovery_new(const char *wal_dirname, bool force_recovery, void recovery_delete(struct recovery *r); -/* to be called at exit */ -void -recovery_exit(struct recovery *r); - void recovery_follow_local(struct recovery *r, struct xstream *stream, const char *name, ev_tstamp wal_dir_rescan_delay); -- 2.11.0