From 96b7dbca090e5658efbd5078707604aebc744592 Mon Sep 17 00:00:00 2001 From: microstrain-sam <105877710+microstrain-sam@users.noreply.github.com> Date: Thu, 12 Dec 2024 17:14:06 -0500 Subject: [PATCH] Fix warning from unused function. --- src/cpp/mip/metadata/mip_meta_utils.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/cpp/mip/metadata/mip_meta_utils.hpp b/src/cpp/mip/metadata/mip_meta_utils.hpp index 5416e3b5..c6e0f5bc 100644 --- a/src/cpp/mip/metadata/mip_meta_utils.hpp +++ b/src/cpp/mip/metadata/mip_meta_utils.hpp @@ -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 extractBasicType(mip::metadata::Type type, microstrain::Span payload, size_t offset=0) +inline std::optional extractIntegralType(mip::metadata::Type type, microstrain::Span payload, size_t offset=0) { switch(type) { @@ -86,8 +86,6 @@ inline std::optional 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(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; } }