Skip to content

Commit

Permalink
Fix warning from unused function.
Browse files Browse the repository at this point in the history
  • Loading branch information
microstrain-sam committed Dec 12, 2024
1 parent 5066dc1 commit 96b7dbc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/cpp/mip/metadata/mip_meta_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ void* access(void* p);
#ifdef MICROSTRAIN_HAS_OPTIONAL
///@brief Reads a value of the given type from a buffer.
///
inline std::optional<uint64_t> extractBasicType(mip::metadata::Type type, microstrain::Span<const uint8_t> payload, size_t offset=0)
inline std::optional<uint64_t> extractIntegralType(mip::metadata::Type type, microstrain::Span<const uint8_t> payload, size_t offset=0)
{
switch(type)
{
Expand All @@ -86,8 +86,6 @@ inline std::optional<uint64_t> extractBasicType(mip::metadata::Type type, micros
case mip::metadata::Type::S32: return microstrain::extract< int64_t, microstrain::serialization::Endian::big>(payload.data(), payload.size(), offset);
case mip::metadata::Type::U64: return microstrain::extract<uint64_t, microstrain::serialization::Endian::big>(payload.data(), payload.size(), offset);
case mip::metadata::Type::S64: return microstrain::extract< int64_t, microstrain::serialization::Endian::big>(payload.data(), payload.size(), offset);
case mip::metadata::Type::FLOAT: return microstrain::extract< float, microstrain::serialization::Endian::big>(payload.data(), payload.size(), offset);
case mip::metadata::Type::DOUBLE: return microstrain::extract< double, microstrain::serialization::Endian::big>(payload.data(), payload.size(), offset);
default: return std::nullopt;
}
}
Expand Down

0 comments on commit 96b7dbc

Please sign in to comment.