From dc71420e7862d4c7c4da3072e75131043d80327c Mon Sep 17 00:00:00 2001 From: Mirko Bonadei Date: Sat, 12 Jan 2019 00:18:53 +0100 Subject: [PATCH] Remove deprecated code from logging. Bug: webrtc:10198 Change-Id: I00c74751c5c71e515c3208a558677215ac547b78 Reviewed-on: https://webrtc-review.googlesource.com/c/116994 Reviewed-by: Karl Wiberg Commit-Queue: Mirko Bonadei Cr-Commit-Position: refs/heads/master@{#26235} --- rtc_base/logging.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/rtc_base/logging.h b/rtc_base/logging.h index b46aa2dd7b..5cd4f72f22 100644 --- a/rtc_base/logging.h +++ b/rtc_base/logging.h @@ -358,11 +358,6 @@ class LogCall final { } }; -// TODO(bugs.webrtc.org/9278): Remove this once it's no longer used. -struct LogMessageVoidify { - void operator&(std::ostream&) {} // no-presubmit-check TODO(webrtc:8982) -}; - } // namespace webrtc_logging_impl // Direct use of this class is deprecated; please use the logging macros @@ -509,13 +504,6 @@ class LogMessage { // Logging Helpers ////////////////////////////////////////////////////////////////////// -// DEPRECATED. -// TODO(bugs.webrtc.org/9278): Remove once there are no more users. -#define RTC_LOG_SEVERITY_PRECONDITION(sev) \ - (rtc::LogMessage::IsNoop(sev)) \ - ? static_cast(0) \ - : rtc::webrtc_logging_impl::LogMessageVoidify()& - #define RTC_LOG_FILE_LINE(sev, file, line) \ rtc::webrtc_logging_impl::LogCall() & \ rtc::webrtc_logging_impl::LogStreamer<>() \