diff --git a/base/include/safe_queue.h b/base/include/safe_queue.h index 6cbfab47626be3016463b22744245a502fb51c90..8ff5da9deb0fd41d4d2ec1ac99a7bd3f2ff85230 100644 --- a/base/include/safe_queue.h +++ b/base/include/safe_queue.h @@ -109,7 +109,6 @@ protected: */ template class SafeQueue : public SafeQueueInner { - protected: using SafeQueueInner::deque_; using SafeQueueInner::mutex_; @@ -143,7 +142,6 @@ protected: */ template class SafeStack : public SafeQueueInner { - protected: using SafeQueueInner::deque_; using SafeQueueInner::mutex_; diff --git a/base/include/sorted_vector.h b/base/include/sorted_vector.h index 612f7a61f8a2c7181cbd1409dcd2f840a4ed0d9b..700f291bf001049f89b5f121539f72105d7a619f 100644 --- a/base/include/sorted_vector.h +++ b/base/include/sorted_vector.h @@ -29,7 +29,6 @@ namespace OHOS { */ template class SortedVector { - public: using value_type = TYPE; using size_type = std::size_t; @@ -306,7 +305,6 @@ SortedVector::SortedVector(const SortedVector template SortedVector::SortedVector(const SortedVector& rhs) { - if (AllowDuplicate) { std::copy(rhs.Begin(), rhs.End(), std::back_inserter(vec_)); } else {