Browse Source

container: drop useless [[maybe_unused]]

Michele Caini 3 years ago
parent
commit
7eae8523cb
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/entt/container/dense_map.hpp
  2. 1 1
      src/entt/container/dense_set.hpp

+ 1 - 1
src/entt/container/dense_map.hpp

@@ -908,7 +908,7 @@ public:
      * @param index An index of a bucket to access.
      * @param index An index of a bucket to access.
      * @return An iterator to the end of the given bucket.
      * @return An iterator to the end of the given bucket.
      */
      */
-    [[nodiscard]] const_local_iterator end([[maybe_unused]] const size_type index) const {
+    [[nodiscard]] const_local_iterator end(const size_type index) const {
         return cend(index);
         return cend(index);
     }
     }
 
 

+ 1 - 1
src/entt/container/dense_set.hpp

@@ -761,7 +761,7 @@ public:
      * @param index An index of a bucket to access.
      * @param index An index of a bucket to access.
      * @return An iterator to the end of the given bucket.
      * @return An iterator to the end of the given bucket.
      */
      */
-    [[nodiscard]] const_local_iterator end([[maybe_unused]] const size_type index) const {
+    [[nodiscard]] const_local_iterator end(const size_type index) const {
         return cend(index);
         return cend(index);
     }
     }