diff options
Diffstat (limited to 'src/components/utils/include/utils/convert_utils.h')
-rw-r--r-- | src/components/utils/include/utils/convert_utils.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/components/utils/include/utils/convert_utils.h b/src/components/utils/include/utils/convert_utils.h index ba23b620dc..e51cf8cd57 100644 --- a/src/components/utils/include/utils/convert_utils.h +++ b/src/components/utils/include/utils/convert_utils.h @@ -70,20 +70,6 @@ unsigned long long int ConvertUInt64ToLongLongUInt(const uint64_t value); uint64_t ConvertLongLongUIntToUInt64(const unsigned long long int value); /** - * @brief Convert one number value to another type value - * @param value to be converted - * @return conversion result - */ -template <typename InputType, typename OutputType> -OutputType SafeStaticCast(const InputType value) { - DCHECK_OR_RETURN(value >= std::numeric_limits<OutputType>::min(), - std::numeric_limits<OutputType>::min()); - DCHECK_OR_RETURN(value <= std::numeric_limits<OutputType>::max(), - std::numeric_limits<OutputType>::max()); - return static_cast<OutputType>(value); -} - -/** * @brief Convert binary data to a string value * @param data raw binary data * @param data_size string length. Required to check whether the data is a |