From: Yao Zongyou Date: Mon, 21 Jan 2019 13:10:12 +0000 (+0800) Subject: osd: remove unused class read_log_and_missing_error X-Git-Tag: v14.1.0~302^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F26057%2Fhead;p=ceph.git osd: remove unused class read_log_and_missing_error Signed-off-by: Yao Zongyou --- diff --git a/src/osd/PGLog.h b/src/osd/PGLog.h index fb7d9f82e413..70840c5aef14 100644 --- a/src/osd/PGLog.h +++ b/src/osd/PGLog.h @@ -60,19 +60,6 @@ struct PGLog : DoutPrefixProvider { virtual ~LogEntryHandler() {} }; - /* Exceptions */ - class read_log_and_missing_error : public buffer::error { - public: - explicit read_log_and_missing_error(const char *what) { - snprintf(buf, sizeof(buf), "read_log_and_missing_error: %s", what); - } - const char *what() const throw () override { - return buf; - } - private: - char buf[512]; - }; - public: /** * IndexLog - adds in-memory index of the log, by oid.