Skip to content

Commit

Permalink
util: Get rid of unused Discard struct
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanofsky committed Jun 13, 2024
1 parent c92e90c commit 1f76880
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions include/mp/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,17 +114,6 @@ struct Priority<0>
{
};

//! Function parameter type for discarded argument. Useful to be able to write a
//! function overload that discards arguments as a normal function instead of a
//! template function.
struct Discard
{
template <typename... Args>
Discard(Args&&...)
{
}
};

//! Return capnp type name with filename prefix removed.
template <typename T>
const char* TypeName()
Expand Down

0 comments on commit 1f76880

Please sign in to comment.