[PATCH v1] libcamera: base: mutex: Remove unnecessary constructors
Barnabás Pőcze
barnabas.pocze at ideasonboard.com
Mon Mar 3 20:33:30 CET 2025
The compiler defined default constructor works perfectly fine.
Signed-off-by: Barnabás Pőcze <barnabas.pocze at ideasonboard.com>
---
include/libcamera/base/mutex.h | 8 --------
1 file changed, 8 deletions(-)
diff --git a/include/libcamera/base/mutex.h b/include/libcamera/base/mutex.h
index fa9a8d0dc..20ebe6fee 100644
--- a/include/libcamera/base/mutex.h
+++ b/include/libcamera/base/mutex.h
@@ -23,10 +23,6 @@ namespace libcamera {
class LIBCAMERA_TSA_CAPABILITY("mutex") Mutex final
{
public:
- constexpr Mutex()
- {
- }
-
void lock() LIBCAMERA_TSA_ACQUIRE()
{
mutex_.lock();
@@ -84,10 +80,6 @@ private:
class ConditionVariable final
{
public:
- ConditionVariable()
- {
- }
-
void notify_one() noexcept
{
cv_.notify_one();
--
2.48.1
More information about the libcamera-devel
mailing list