From b65871407e8125bc67873d6539e28683f77fb5d7 Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Mon, 15 Jul 2019 19:57:42 -0300 Subject: [PATCH] staging_buffer_cache: Remove [[nodiscard]] --- src/video_core/staging_buffer_cache.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/video_core/staging_buffer_cache.h b/src/video_core/staging_buffer_cache.h index c6d02c6ef9..bc171629e4 100644 --- a/src/video_core/staging_buffer_cache.h +++ b/src/video_core/staging_buffer_cache.h @@ -23,15 +23,15 @@ public: explicit StagingBufferCache(bool can_flush_aot) : can_flush_aot{can_flush_aot} {} virtual ~StagingBufferCache() = default; - [[nodiscard]] StagingBufferType& GetWriteBuffer(std::size_t size) { + StagingBufferType& GetWriteBuffer(std::size_t size) { return GetBuffer(size, false); } - [[nodiscard]] StagingBufferType& GetReadBuffer(std::size_t size) { + StagingBufferType& GetReadBuffer(std::size_t size) { return GetBuffer(size, true); } - [[nodiscard]] bool CanFlushAheadOfTime() const { + bool CanFlushAheadOfTime() const { return can_flush_aot; }