Skip to content

Commit 197a06e

Browse files
committed
remove gf/Unused.h in favor of [[maybe_unused]]
1 parent 43a91e0 commit 197a06e

File tree

3 files changed

+1
-49
lines changed

3 files changed

+1
-49
lines changed

TODO.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,3 @@ This file is a list of ideas for gf. Some of them will eventually be in gf. Othe
3939
- blocking bug: nemequ/hedley#35
4040
- (packaging) use CPack to create packages
4141
- (binding) Python binding with [pybind11](https://github.com/pybind/pybind11)?
42-
- (code) remove gf::unused

include/gf/Span.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
#include <array>
2626
#include <vector>
2727

28-
#include "Unused.h"
29-
3028
namespace gf {
3129
#ifndef DOXYGEN_SHOULD_SKIP_THIS
3230
inline namespace v1 {
@@ -87,11 +85,10 @@ inline namespace v1 {
8785
* @param size The number of elements in the array
8886
*/
8987
constexpr
90-
StaticSpan(T *data, std::size_t size) noexcept
88+
StaticSpan(T *data, [[maybe_unused]] std::size_t size) noexcept
9189
: m_data(data)
9290
{
9391
assert(size == Size);
94-
gf::unused(size);
9592
}
9693

9794
/**

include/gf/Unused.h

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)