From d8cf26bd509fe0dcfa9f1d9c9b029cc6e71860a5 Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Thu, 1 Aug 2019 16:42:38 -0700 Subject: [PATCH] Remove unused field Found via clang. --- src/s3fs_util.cpp | 2 +- src/s3fs_util.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/s3fs_util.cpp b/src/s3fs_util.cpp index 81cad68..a14c9b2 100644 --- a/src/s3fs_util.cpp +++ b/src/s3fs_util.cpp @@ -425,7 +425,7 @@ void free_mvnodes(MVNODE *head) //------------------------------------------------------------------- // Class AutoLock //------------------------------------------------------------------- -AutoLock::AutoLock(pthread_mutex_t* pmutex, Type type) : auto_mutex(pmutex), type(type) +AutoLock::AutoLock(pthread_mutex_t* pmutex, Type type) : auto_mutex(pmutex) { if (type == ALREADY_LOCKED) { is_lock_acquired = false; diff --git a/src/s3fs_util.h b/src/s3fs_util.h index 14c76f6..ed70f59 100644 --- a/src/s3fs_util.h +++ b/src/s3fs_util.h @@ -99,7 +99,6 @@ class AutoLock private: pthread_mutex_t* const auto_mutex; bool is_lock_acquired; - const Type type; }; //-------------------------------------------------------------------