diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2020-05-08 23:21:03 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2020-05-08 23:21:03 +0000 |
commit | 36b2ee30dd912e44a4f85cd4d2d86046bbbab2ce (patch) | |
tree | 97968fe41ab8230f05e60d5d41684065997dfe1f /storage | |
parent | dae38cdf2f8bd74de485130c3fe63fb91729fce1 (diff) |
Remove unused clearResult method, and use std::lock_guard
Diffstat (limited to 'storage')
-rw-r--r-- | storage/src/tests/persistence/common/persistenceproviderwrapper.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/storage/src/tests/persistence/common/persistenceproviderwrapper.h b/storage/src/tests/persistence/common/persistenceproviderwrapper.h index 059bb4dea00..21e5d8016aa 100644 --- a/storage/src/tests/persistence/common/persistenceproviderwrapper.h +++ b/storage/src/tests/persistence/common/persistenceproviderwrapper.h @@ -54,7 +54,7 @@ private: mutable std::mutex _lock; mutable std::vector<std::string> _log; uint32_t _failureMask; - using Guard = std::unique_lock<std::mutex>; + using Guard = std::lock_guard<std::mutex>; public: PersistenceProviderWrapper(spi::PersistenceProvider& spi); ~PersistenceProviderWrapper() override; @@ -67,9 +67,6 @@ public: Guard guard(_lock); _result = result; } - void clearResult() { - _result = spi::Result(spi::Result::ErrorType::NONE, ""); - } spi::Result getResult() const { Guard guard(_lock); return _result; |