From c4f8b3814869f1fce0bf57c501cfcb1f2d01b7ae Mon Sep 17 00:00:00 2001 From: Scott Schurr Date: Tue, 28 Jun 2016 09:57:32 -0700 Subject: [PATCH] Remove undesirable Journal::Stream constructor: Constructing a Stream from a Sink would elide specifying the Severity level of the Stream. That constructor is removed so if a Stream is constructed from a Sink the Severity must be specified. --- src/ripple/beast/utility/Journal.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/ripple/beast/utility/Journal.h b/src/ripple/beast/utility/Journal.h index 1785315a6..b89bc3f3d 100644 --- a/src/ripple/beast/utility/Journal.h +++ b/src/ripple/beast/utility/Journal.h @@ -175,17 +175,12 @@ public: { public: /** Create a stream which produces no output. */ - Stream () + explicit Stream () : m_sink (getNullSink()) , m_level (severities::kDisabled) { } - Stream (Sink& sink) - : m_sink (sink) - , m_level (sink.threshold()) - { } - - /** Create stream that writes at the given level. + /** Create a stream that writes at the given level. Constructor is inlined so checking active() very inexpensive. */